Started GET “/” for 127.0.0.1 at 2018-12-02 19:07:00 -0200
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (1.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (85.3ms) Rendered layouts/_header-user.html.erb (4.2ms)
Completed 200 OK in 12734ms (Views: 12715.1ms | ActiveRecord: 9.1ms)
Started GET “/” for 127.0.0.1 at 2018-12-02 19:07:35 -0200
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (1.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (47.0ms) Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 5418ms (Views: 5398.7ms | ActiveRecord: 8.7ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 19:07:43 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (22.5ms) Rendered layouts/_header-admin.html.erb (3.0ms)
Completed 200 OK in 81ms (Views: 62.3ms | ActiveRecord: 5.9ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-02 19:07:45 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (1.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (58.8ms) [1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 124ms (Views: 94.6ms | ActiveRecord: 8.4ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 19:07:46 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (8.9ms) Rendered layouts/_header-admin.html.erb (5.2ms)
Completed 200 OK in 104ms (Views: 98.1ms | ActiveRecord: 1.4ms)
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$ttvxpK95hjtsSsgFXtA3HOjEpGTwyGI99Sh9BOXRUIR4cGzMnc6x6"], ["created_at", "2018-12-02 21:12:49.453990"], ["updated_at", "2018-12-02 21:12:49.453990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"679"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["reset_digest", "0X9pfz2QpqebEqE7feZFpQ"], ["updated_at", "2018-12-02 21:12:49.499357"], ["id", 679]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3[0m [["updated_at", "2018-12-02 21:12:49.505478"], ["reset_sent_at", "2018-12-02 21:12:49.504632"], ["id", 679]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.8ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)
UserMailer#password_reset: processed outbound mail in 365.2ms Sent mail to teste@unb.com.br (65136.6ms) Date: Sun, 02 Dec 2018 19:12:49 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c044ad1d8097_231cee8f2c3132@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;
boundary="--==_mimepart_5c044ad1d4ce9_231cee8f2c31235"; charset=UTF-8
Content-Transfer-Encoding: 7bit
—-==_mimepart_5c044ad1d4ce9_231cee8f2c31235 Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Para recadastrar sua senha clique no link abaixo:
localhost:3000/password_resets/0X9pfz2QpqebEqE7feZFpQ/edit?email=3D= teste%40unb.com.br
Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.
—-==_mimepart_5c044ad1d4ce9_231cee8f2c31235 Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html> <html>
<head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8“ />
<style>
Email styles need to be inline
</style>
</head>
<body>
<h1>Recadastramento de Senha</h1>
<p>Para recadastrar sua senha clique no link abaixo:</p>
<a href=3D“localhost:3000/password_resets/0X9pfz2QpqebEqE7feZFpQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>
<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>
</body>
</html>
—-==_mimepart_5c044ad1d4ce9_231cee8f2c31235–
Completed 500 Internal Server Error in 65521ms (ActiveRecord: 3.4ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$qMKJN5i2pSRmcmax5gXpeeKrBCN5nUU5pIHryhsxN4aq/iZPIdu9S"], ["created_at", "2018-12-02 21:13:55.182893"], ["updated_at", "2018-12-02 21:13:55.182893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)
UserMailer#password_reset: processed outbound mail in 11.2ms
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$JscBqwW2ntEDcE1AUTedzukPDwqYyMq5X.SrTR6x7.gDae2oKHTq6"], ["created_at", "2018-12-02 21:13:55.388308"], ["updated_at", "2018-12-02 21:13:55.388308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"681"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["encrypted_password", "$2a$11$4Ye7eNIt60Ny58lxpkNfC.qX3sNaQZQggWD7z2cpjSHsdKFYabZCi"], ["updated_at", "2018-12-02 21:13:55.555701"], ["id", 681]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to test.host/login Completed 302 Found in 166ms (ActiveRecord: 2.1ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$CDugWtDkT7DBGqKHXsxV6OwaE2UAaNccSPkbF/b3wxm4epoq/.rRy"], ["created_at", "2018-12-02 21:13:55.726422"], ["updated_at", "2018-12-02 21:13:55.726422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"682"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.6ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$OD9HWdDbyPRZX6VgKsZyH.elVHpvvzWWSPq815Aiy2qZj6Zgm2ymm"], ["created_at", "2018-12-02 21:13:55.905474"], ["updated_at", "2018-12-02 21:13:55.905474"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"683"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 266ms (Views: 4.2ms | ActiveRecord: 1.2ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$1BbTw2OCVJghfWofua6pCO9nQFl0l8dMtLGNDZ0vhK5PDZxgmU.Ge"], ["created_at", "2018-12-02 21:13:56.339778"], ["updated_at", "2018-12-02 21:13:56.339778"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"684"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 166ms (Views: 4.2ms | ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$oFNjdD0ajmqYBEnvcgjHU.sqKQrGVY1.9TdT.VMEfjB0AZLb.f5zq"], ["created_at", "2018-12-02 21:13:56.679896"], ["updated_at", "2018-12-02 21:13:56.679896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"685"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Kh7a/BQyT664ZCsSyWfEOexwJm440F6dtYq42UjoWkF1xjXybporS"], ["created_at", "2018-12-02 21:13:56.875341"], ["updated_at", "2018-12-02 21:13:56.875341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)
UserMailer#password_reset: processed outbound mail in 12.1ms
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$BPy9vfVxvqEcgGHLRjNboO/I.AqOAa3/JpvWMOqzI///bY6Fa9YHy"], ["created_at", "2018-12-02 21:13:57.055491"], ["updated_at", "2018-12-02 21:13:57.055491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)
UserMailer#password_reset: processed outbound mail in 13.0ms
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$09ceW.rQoKI2.oU0eEGcvOiDEOTUv9YQYTeGvvJt4aFkjOMqQCd1q"], ["created_at", "2018-12-02 21:13:57.325836"], ["updated_at", "2018-12-02 21:13:57.325836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:13:57.330888"], ["updated_at", "2018-12-02 21:13:57.330888"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:13:57 -0200
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:13:57.349222"], ["last_sign_in_at", "2018-12-02 21:13:57.349222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:13:57.350376"], ["id", 688]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"491"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 491], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$uPCeTzpEcSluVUFjrz3oK.vSOdC4neTJn7WIGM2pZdmY8IzCTFUPK"], ["created_at", "2018-12-02 21:13:57.907214"], ["updated_at", "2018-12-02 21:13:57.907214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:13:57.911465"], ["updated_at", "2018-12-02 21:13:57.911465"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:13:57 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:13:57.917332"], ["last_sign_in_at", "2018-12-02 21:13:57.917332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:13:57.918499"], ["id", 689]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"492"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$GuyGkkG.tirPVV1HmDiEVOdBkEDmB2GCd9PkT6Uzh.PNXJEMJk4g6"], ["created_at", "2018-12-02 21:13:58.377528"], ["updated_at", "2018-12-02 21:13:58.377528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:13:58.381957"], ["updated_at", "2018-12-02 21:13:58.381957"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:13:58 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:13:58.387780"], ["last_sign_in_at", "2018-12-02 21:13:58.387780"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:13:58.388836"], ["id", 690]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"493", "user_id"=>"690"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:13:58 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"493", "user_id"=>"690"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CFjU0tXJrqHNK6goBQtCU.zN1gHe/NOVc2bt4kx9FsBsIAgKuNJV2"], ["created_at", "2018-12-02 21:13:59.216643"], ["updated_at", "2018-12-02 21:13:59.216643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:13:59.223691"], ["updated_at", "2018-12-02 21:13:59.223691"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:13:59 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:13:59.234902"], ["last_sign_in_at", "2018-12-02 21:13:59.234902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:13:59.236576"], ["id", 691]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"494", "user_id"=>"691"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:13:59 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"494", "user_id"=>"691"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 494], ["user_id", 691], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$kFq2sczoEo7F9A7doe5i5.DDUvidwXOKvDTS9EazgHdHfOeFEYp/G"], ["created_at", "2018-12-02 21:14:00.031729"], ["updated_at", "2018-12-02 21:14:00.031729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:00.036306"], ["updated_at", "2018-12-02 21:14:00.036306"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:14:00 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:00.043580"], ["last_sign_in_at", "2018-12-02 21:14:00.043580"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:00.044635"], ["id", 692]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"495", "user_id"=>"692"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:14:00 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"495", "user_id"=>"692"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 495], ["user_id", 692], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$BnpAEIS9JwmSPS5mxIQlEOuvkE1a8woFT8zhPOv6nz8s7bLEyRTsG"], ["created_at", "2018-12-02 21:14:00.818399"], ["updated_at", "2018-12-02 21:14:00.818399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:00.823957"], ["updated_at", "2018-12-02 21:14:00.823957"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:14:00 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:00.830740"], ["last_sign_in_at", "2018-12-02 21:14:00.830740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:00.831924"], ["id", 693]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"496"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 496], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$xOFOvnL4XMxD0NoOh54nuuOXqT34wzeDirzSchrgZktfLauBQMz.a"], ["created_at", "2018-12-02 21:14:01.296313"], ["updated_at", "2018-12-02 21:14:01.296313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:01.302186"], ["updated_at", "2018-12-02 21:14:01.302186"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 19:14:01 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:01.309315"], ["last_sign_in_at", "2018-12-02 21:14:01.309315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:01.310622"], ["id", 694]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"497"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$kqW/H.5QZ16vYzS7q5/Bwug46iUNU.7DPuoiSvqTHtRfyO0Q2kF9C"], ["created_at", "2018-12-02 21:14:01.785841"], ["updated_at", "2018-12-02 21:14:01.785841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:01.792326"], ["updated_at", "2018-12-02 21:14:01.792326"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 498], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 695], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 695], ["room_id", 498], ["created_at", "2018-12-02 21:14:01.809405"], ["updated_at", "2018-12-02 21:14:01.809405"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/498” for 127.0.0.1 at 2018-12-02 19:14:01 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:01.816070"], ["last_sign_in_at", "2018-12-02 21:14:01.816070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:01.817193"], ["id", 695]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"498"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 498], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '498')[0m
Rendered appointments/show.html.erb within layouts/application (57.2ms)
Rendered layouts/_header-user.html.erb (4.8ms)
Completed 200 OK in 2033ms (Views: 2027.1ms | ActiveRecord: 1.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$A51MdC9R1wrq.Sv/2G0KnOXBThtRcxFR2QzE3pz47OCAtXqSds/dO"], ["created_at", "2018-12-02 21:14:04.021805"], ["updated_at", "2018-12-02 21:14:04.021805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:04.027591"], ["updated_at", "2018-12-02 21:14:04.027591"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 499], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 696], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 696], ["room_id", 499], ["created_at", "2018-12-02 21:14:04.039966"], ["updated_at", "2018-12-02 21:14:04.039966"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 499], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 696], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 696], ["room_id", 499], ["created_at", "2018-12-02 21:14:04.051147"], ["updated_at", "2018-12-02 21:14:04.051147"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 19:14:04 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:04.056891"], ["last_sign_in_at", "2018-12-02 21:14:04.056891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:04.057939"], ["id", 696]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 696]] Rendered appointments/my_appointments.html.erb within layouts/application (6.4ms) Rendered layouts/_header-user.html.erb (4.1ms)
Completed 200 OK in 110ms (Views: 65.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$R/9n1LPqHhz/MLA9poo0TuUKwIamEIuWXzmQYbRsiyXlF8C4.D30."], ["created_at", "2018-12-02 21:14:04.336240"], ["updated_at", "2018-12-02 21:14:04.336240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:04.343602"], ["updated_at", "2018-12-02 21:14:04.343602"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 500], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 697], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 697], ["room_id", 500], ["created_at", "2018-12-02 21:14:04.354302"], ["updated_at", "2018-12-02 21:14:04.354302"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 500], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 697], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 697], ["room_id", 500], ["created_at", "2018-12-02 21:14:04.364291"], ["updated_at", "2018-12-02 21:14:04.364291"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 19:14:04 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:04.369928"], ["last_sign_in_at", "2018-12-02 21:14:04.369928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:04.371100"], ["id", 697]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 697]] Rendered appointments/my_appointments.html.erb within layouts/application (6.9ms) Rendered layouts/_header-user.html.erb (5.0ms)
Completed 200 OK in 87ms (Views: 84.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$GPmDkCkpqhlMjX2S3/F3UuAorim0sbKQOr7YUfyK/aNVHm7Gonu1K"], ["created_at", "2018-12-02 21:14:04.634086"], ["updated_at", "2018-12-02 21:14:04.634086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:04.639040"], ["updated_at", "2018-12-02 21:14:04.639040"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 501], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 698], ["room_id", 501], ["created_at", "2018-12-02 21:14:04.648899"], ["updated_at", "2018-12-02 21:14:04.648899"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/158” for 127.0.0.1 at 2018-12-02 19:14:04 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:04.655271"], ["last_sign_in_at", "2018-12-02 21:14:04.655271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:04.656451"], ["id", 698]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"158"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$KqBjRqZzP6vhZw6htmHRxe4fSwaQPZ0VT/waWyq9CVHJK6Dy1ilxC"], ["created_at", "2018-12-02 21:14:05.189016"], ["updated_at", "2018-12-02 21:14:05.189016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 19:14:05 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:05.196811"], ["last_sign_in_at", "2018-12-02 21:14:05.196811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:05.197964"], ["id", 699]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (13.9ms) Rendered layouts/_header-admin.html.erb (4.0ms)
Completed 200 OK in 96ms (Views: 94.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$ZrHmml2839qIsGk4Z5VxG.MV9.V7ExPy7.6jeEBlPqtyzQtOBEFs6"], ["created_at", "2018-12-02 21:14:05.466779"], ["updated_at", "2018-12-02 21:14:05.466779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 19:14:05 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:05.472083"], ["last_sign_in_at", "2018-12-02 21:14:05.472083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:05.473181"], ["id", 700]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$t0nCJkpGLKtq2Wjkk.4OdukEoP5kU7iNFiUOzpEZ0NDNGjz7pA9gG"], ["created_at", "2018-12-02 21:14:05.645397"], ["updated_at", "2018-12-02 21:14:05.645397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 19:14:05 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:05.652472"], ["last_sign_in_at", "2018-12-02 21:14:05.652472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:05.653680"], ["id", 701]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (9.4ms) Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 64ms (Views: 62.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$aJaRPz77vnPyk2fHV0lgpOh3htvMyWl.FjkwuzfyfV/T5oK0EUodi"], ["created_at", "2018-12-02 21:14:05.887563"], ["updated_at", "2018-12-02 21:14:05.887563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 19:14:05 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:05.892964"], ["last_sign_in_at", "2018-12-02 21:14:05.892964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:05.893980"], ["id", 702]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (7.6ms) Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 60ms (Views: 58.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 19:14:05 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$0uJKOmXo.w0gFnW4jQhLCOlTWzc8nEdB6jsW2uKTt98GKYzjAqqvW"], ["created_at", "2018-12-02 21:14:06.136793"], ["updated_at", "2018-12-02 21:14:06.136793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:06.141487"], ["updated_at", "2018-12-02 21:14:06.141487"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/502” for 127.0.0.1 at 2018-12-02 19:14:06 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:06.146827"], ["last_sign_in_at", "2018-12-02 21:14:06.146827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:06.147882"], ["id", 703]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"502"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 502], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (4.8ms)
Completed 200 OK in 76ms (Views: 73.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$sAVDeqTRh8oqIZCQNIFac.nSNlvqxAZAtKXR//XYZLg5AlmgHZ4mm"], ["created_at", "2018-12-02 21:14:06.392407"], ["updated_at", "2018-12-02 21:14:06.392407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:06.397332"], ["updated_at", "2018-12-02 21:14:06.397332"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/503” for 127.0.0.1 at 2018-12-02 19:14:06 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:06.403332"], ["last_sign_in_at", "2018-12-02 21:14:06.403332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:06.404497"], ["id", 704]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"503"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 503], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 57ms (Views: 54.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:06.473408"], ["updated_at", "2018-12-02 21:14:06.473408"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/504” for 127.0.0.1 at 2018-12-02 19:14:06 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"504"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$m0GW4o5EsT4bNro2CsECyuGFhhIgUwGCZncGwoHGw2TDVigvWb4fy"], ["created_at", "2018-12-02 21:14:06.646581"], ["updated_at", "2018-12-02 21:14:06.646581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:06.652645"], ["updated_at", "2018-12-02 21:14:06.652645"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/505” for 127.0.0.1 at 2018-12-02 19:14:06 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:06.658603"], ["last_sign_in_at", "2018-12-02 21:14:06.658603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:06.659790"], ["id", 705]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"505"}
Rendering rooms/filtro.html.erb within layouts/application
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/filtro.html.erb within layouts/application (7.8ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 64ms (Views: 62.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:06.735259"], ["updated_at", "2018-12-02 21:14:06.735259"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/506” for 127.0.0.1 at 2018-12-02 19:14:06 -0200 Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"506"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$f7T1RQrTIGFkQA/u4eiwC.Hb.o2RWOjvBmh7Bcmw/5RlZSJHC24yG"], ["created_at", "2018-12-02 21:14:06.908871"], ["updated_at", "2018-12-02 21:14:06.908871"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:06.913604"], ["updated_at", "2018-12-02 21:14:06.913604"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/507/edit” for 127.0.0.1 at 2018-12-02 19:14:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:06.918613"], ["last_sign_in_at", "2018-12-02 21:14:06.918613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:06.919761"], ["id", 706]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"507"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 507], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-user.html.erb (4.1ms)
Completed 200 OK in 70ms (Views: 67.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$kyQPusANjeUgMeBtGTJoNuS5bxnhC.zuBw4LAwmQYL3OevQVdgnl2"], ["created_at", "2018-12-02 21:14:07.158112"], ["updated_at", "2018-12-02 21:14:07.158112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:07.162838"], ["updated_at", "2018-12-02 21:14:07.162838"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/508/edit” for 127.0.0.1 at 2018-12-02 19:14:07 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:07.167707"], ["last_sign_in_at", "2018-12-02 21:14:07.167707"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:07.168733"], ["id", 707]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"508"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 508], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 67ms (Views: 64.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:07.247440"], ["updated_at", "2018-12-02 21:14:07.247440"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/509” for 127.0.0.1 at 2018-12-02 19:14:07 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"509"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$.qk.VNRMKQH7XA6s8mvg2uDbHYFXe1ZxMOhOdh3GSVSkedLrOmHaS"], ["created_at", "2018-12-02 21:14:07.423244"], ["updated_at", "2018-12-02 21:14:07.423244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 19:14:07 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:07.431162"], ["last_sign_in_at", "2018-12-02 21:14:07.431162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:07.432386"], ["id", 708]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$2vH5EHCRl8Zk7HjClekgiON37v5EhcCvABhpdIU3jiRYL.wMkUZhq"], ["created_at", "2018-12-02 21:14:07.914873"], ["updated_at", "2018-12-02 21:14:07.914873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 19:14:07 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:07.921544"], ["last_sign_in_at", "2018-12-02 21:14:07.921544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:07.922742"], ["id", 709]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$QaDsqH76Ai1jYWNnToFpq.x101SSa.FpszSFPEnvc.0IPkpyuQxN2"], ["created_at", "2018-12-02 21:14:08.390414"], ["updated_at", "2018-12-02 21:14:08.390414"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 19:14:08 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:08.398458"], ["last_sign_in_at", "2018-12-02 21:14:08.398458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:08.399618"], ["id", 710]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$yfB5Fm/lQnfr6bveubVuCO3XUauUxXHbxqo6ydJRioZu764ojK8oC"], ["created_at", "2018-12-02 21:14:08.876430"], ["updated_at", "2018-12-02 21:14:08.876430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 19:14:08 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:08.882898"], ["last_sign_in_at", "2018-12-02 21:14:08.882898"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:08.883972"], ["id", 711]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$hcom//QvozVQioKBaF265ema3eVmshoT0sGrdjzAhUN/BkyXtMeuG"], ["created_at", "2018-12-02 21:14:09.363224"], ["updated_at", "2018-12-02 21:14:09.363224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 19:14:09 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:09.370078"], ["last_sign_in_at", "2018-12-02 21:14:09.370078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:09.371111"], ["id", 712]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:173:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$z5xRNTn0vBbMNJeOgTZak.UZj1geag2Z5oSnc3QTn6LpNend/lP56"], ["created_at", "2018-12-02 21:14:09.829266"], ["updated_at", "2018-12-02 21:14:09.829266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:09.834189"], ["updated_at", "2018-12-02 21:14:09.834189"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/510” for 127.0.0.1 at 2018-12-02 19:14:09 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:09.840442"], ["last_sign_in_at", "2018-12-02 21:14:09.840442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:09.841524"], ["id", 713]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"510"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$vaNUf2/m2yNUrfLL3dg/sOCExNgUJ76LTVa2FVXfVEBNKNQiAyd5e"], ["created_at", "2018-12-02 21:14:10.334385"], ["updated_at", "2018-12-02 21:14:10.334385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:10.339262"], ["updated_at", "2018-12-02 21:14:10.339262"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/511” for 127.0.0.1 at 2018-12-02 19:14:10 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:10.345356"], ["last_sign_in_at", "2018-12-02 21:14:10.345356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:10.346427"], ["id", 714]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"511"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$dan77rdUcRLa/eHHOWyjUeJ0XgcLHSbUFiqIQcbttfbi/u30Q74LS"], ["created_at", "2018-12-02 21:14:10.820166"], ["updated_at", "2018-12-02 21:14:10.820166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:10.825050"], ["updated_at", "2018-12-02 21:14:10.825050"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/512” for 127.0.0.1 at 2018-12-02 19:14:10 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:10.831310"], ["last_sign_in_at", "2018-12-02 21:14:10.831310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:10.832395"], ["id", 715]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"512"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$pixjOJrOjGy8FLEuyKpDHuVu0PgyUX6Ysv70LCmb3DSez0U114LCq"], ["created_at", "2018-12-02 21:14:11.320835"], ["updated_at", "2018-12-02 21:14:11.320835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:11.326736"], ["updated_at", "2018-12-02 21:14:11.326736"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/513” for 127.0.0.1 at 2018-12-02 19:14:11 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:11.333646"], ["last_sign_in_at", "2018-12-02 21:14:11.333646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:11.334962"], ["id", 716]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"513"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$jA7YvT3X0HmYQmycOOHNee/INT5Ze0NbFqMNdpq7P4.xXL7Bd6EMC"], ["created_at", "2018-12-02 21:14:11.809474"], ["updated_at", "2018-12-02 21:14:11.809474"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 19:14:11 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:11.818570"], ["last_sign_in_at", "2018-12-02 21:14:11.818570"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:11.819699"], ["id", 717]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:222:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$bMQh4uN99RlJDRdMDgkiduJKElJOEriCkrxjL02YueMaiiFDcJ2TO"], ["created_at", "2018-12-02 21:14:12.302434"], ["updated_at", "2018-12-02 21:14:12.302434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:12.307746"], ["updated_at", "2018-12-02 21:14:12.307746"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/514” for 127.0.0.1 at 2018-12-02 19:14:12 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:12.312906"], ["last_sign_in_at", "2018-12-02 21:14:12.312906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:12.313964"], ["id", 718]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"514"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$T1zjeJ4Yvaexct1CWrKpMu1vvXkLA7EAcdGIvYC0ayQyNuJMShTBO"], ["created_at", "2018-12-02 21:14:12.784418"], ["updated_at", "2018-12-02 21:14:12.784418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:12.790524"], ["updated_at", "2018-12-02 21:14:12.790524"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/515” for 127.0.0.1 at 2018-12-02 19:14:12 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:12.797717"], ["last_sign_in_at", "2018-12-02 21:14:12.797717"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:12.799117"], ["id", 719]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"515"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$v.npx5o1DWv9cK.wLfO3dOSisEM8LKiIZgC15WXqARabICWgOo8gK"], ["created_at", "2018-12-02 21:14:13.281581"], ["updated_at", "2018-12-02 21:14:13.281581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:13.287583"], ["updated_at", "2018-12-02 21:14:13.287583"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/516” for 127.0.0.1 at 2018-12-02 19:14:13 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:13.294081"], ["last_sign_in_at", "2018-12-02 21:14:13.294081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:13.295165"], ["id", 720]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"516"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$c0VmVApcQUjhr4MkwgaAIOYCQ4v/oyQuMl3aRT5rkd.jDU76.0unq"], ["created_at", "2018-12-02 21:14:13.774176"], ["updated_at", "2018-12-02 21:14:13.774176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:13.778893"], ["updated_at", "2018-12-02 21:14:13.778893"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/517” for 127.0.0.1 at 2018-12-02 19:14:13 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:13.783708"], ["last_sign_in_at", "2018-12-02 21:14:13.783708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:13.784750"], ["id", 721]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"517"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$779F6RoUz6jy/XdDhW0R1OEHHykZwLW7jj/S00emm/IN5QHLCMwMq"], ["created_at", "2018-12-02 21:14:14.248832"], ["updated_at", "2018-12-02 21:14:14.248832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/search-rooms” for 127.0.0.1 at 2018-12-02 19:14:14 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:14.254344"], ["last_sign_in_at", "2018-12-02 21:14:14.254344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:14.255362"], ["id", 722]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_rooms as HTML
Rendering rooms/search_rooms.html.erb within layouts/application Rendered rooms/search_rooms.html.erb within layouts/application (6.1ms) Rendered layouts/_header-user.html.erb (3.9ms)
Completed 200 OK in 61ms (Views: 60.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$CRo0oJutXtw/fBQAgK5NJO/Nsbd0uQZb56eBlqHERaSSxGQ7VIcla"], ["created_at", "2018-12-02 21:14:14.490289"], ["updated_at", "2018-12-02 21:14:14.490289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:14.496148"], ["updated_at", "2018-12-02 21:14:14.496148"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:14.500090"], ["updated_at", "2018-12-02 21:14:14.500090"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:14.503837"], ["updated_at", "2018-12-02 21:14:14.503837"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 518], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 723], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 723], ["room_id", 518], ["created_at", "2018-12-02 21:14:14.512691"], ["updated_at", "2018-12-02 21:14:14.512691"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/search-result” for 127.0.0.1 at 2018-12-02 19:14:14 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:14.518519"], ["last_sign_in_at", "2018-12-02 21:14:14.518519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:14.519553"], ["id", 723]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML
Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:289:in `block (6 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
[1m[36mRoom Load (1.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$IMuk2JH7BySrW/Vweg1Mre4j2EeS7wsrhkhJpUR/TLMaE9gNSsSbO"], ["created_at", "2018-12-02 21:14:15.056967"], ["updated_at", "2018-12-02 21:14:15.056967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:15.062274"], ["updated_at", "2018-12-02 21:14:15.062274"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:15.067300"], ["updated_at", "2018-12-02 21:14:15.067300"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 21:14:15.071268"], ["updated_at", "2018-12-02 21:14:15.071268"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 521], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 724], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 724], ["room_id", 521], ["created_at", "2018-12-02 21:14:15.080144"], ["updated_at", "2018-12-02 21:14:15.080144"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/search-result” for 127.0.0.1 at 2018-12-02 19:14:15 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 21:14:15.085535"], ["last_sign_in_at", "2018-12-02 21:14:15.085535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 21:14:15.086673"], ["id", 724]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML
Parameters: {"date_search"=>nil, "time_search"=>nil}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:299:in `block (6 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$PtSY0rYHSHZWYt2VQQvYJ.sWr2RIRVP1VdwAvWKHPQN.w/M520Qna"], ["created_at", "2018-12-02 22:25:49.281405"], ["updated_at", "2018-12-02 22:25:49.281405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"725"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["reset_digest", "bU76lgL_T-xKwmXiC6fk5A"], ["updated_at", "2018-12-02 22:25:49.316498"], ["id", 725]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3[0m [["updated_at", "2018-12-02 22:25:49.321509"], ["reset_sent_at", "2018-12-02 22:25:49.320672"], ["id", 725]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (2.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.7ms)
UserMailer#password_reset: processed outbound mail in 380.3ms Sent mail to teste@unb.com.br (60469.4ms) Date: Sun, 02 Dec 2018 20:25:49 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c045bedadf00_2b2564ef244214c@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;
boundary="--==_mimepart_5c045bedabacc_2b2564ef2442037"; charset=UTF-8
Content-Transfer-Encoding: 7bit
—-==_mimepart_5c045bedabacc_2b2564ef2442037 Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Para recadastrar sua senha clique no link abaixo:
localhost:3000/password_resets/bU76lgL_T-xKwmXiC6fk5A/edit?email=3D= teste%40unb.com.br
Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.
—-==_mimepart_5c045bedabacc_2b2564ef2442037 Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html> <html>
<head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8“ />
<style>
Email styles need to be inline
</style>
</head>
<body>
<h1>Recadastramento de Senha</h1>
<p>Para recadastrar sua senha clique no link abaixo:</p>
<a href=3D“localhost:3000/password_resets/bU76lgL_T-xKwmXiC6fk5A/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>
<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>
</body>
</html>
—-==_mimepart_5c045bedabacc_2b2564ef2442037–
Completed 500 Internal Server Error in 60868ms (ActiveRecord: 3.0ms)
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$QJHs7PjggRFEhfc1v6mB8.UHSyw4nDbBxwpiv5x/B7VxY.Uv0DrEi"], ["created_at", "2018-12-02 22:26:50.346241"], ["updated_at", "2018-12-02 22:26:50.346241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)
UserMailer#password_reset: processed outbound mail in 11.5ms
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$lkqWMXyOBcJVqBcUrSY2EuQ9SPXXJoZ5P7UiO873yydjzbqT8K44C"], ["created_at", "2018-12-02 22:26:50.532330"], ["updated_at", "2018-12-02 22:26:50.532330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"727"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["encrypted_password", "$2a$11$yZcVJvhKb7Vywe/Srea3A.UDGZhJnBsITL29sC7UZShtdx.havh1C"], ["updated_at", "2018-12-02 22:26:50.697250"], ["id", 727]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to test.host/login Completed 302 Found in 164ms (ActiveRecord: 1.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$SkZJDdfiyzrz30CTdAt7sOrxjupPIxObdgQd6P53wJMaRuEi7hC52"], ["created_at", "2018-12-02 22:26:50.869085"], ["updated_at", "2018-12-02 22:26:50.869085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"728"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.6ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$vccN1PMUjmUlpuTIVUPvt.8sLplgHaq6EICPoj/LZ6mEAQcK7O6wy"], ["created_at", "2018-12-02 22:26:51.045639"], ["updated_at", "2018-12-02 22:26:51.045639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"729"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 200ms (Views: 5.3ms | ActiveRecord: 1.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$EyA.ZSA7PmiQo6if4oF5FOZdAfiKeGmip4qMnpuflMNJF4.wBuwZu"], ["created_at", "2018-12-02 22:26:51.417677"], ["updated_at", "2018-12-02 22:26:51.417677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"730"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 168ms (Views: 4.5ms | ActiveRecord: 1.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$r79pkzrd0P7ktVDD7kil6O17R8k.IXXNUPWmaakbdxend6EsqHrEm"], ["created_at", "2018-12-02 22:26:51.755553"], ["updated_at", "2018-12-02 22:26:51.755553"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"731"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$XKKHu9vPzhe9R1oUdQnQj.ZRdeQLWswgEMujJNvRdczDIUXFbibda"], ["created_at", "2018-12-02 22:26:51.932959"], ["updated_at", "2018-12-02 22:26:51.932959"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)
UserMailer#password_reset: processed outbound mail in 12.1ms
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$eecO0cpFZou0kNKjnzmRA.0.DEJX6u/bStnWwvEc3dFziiQTTlw8O"], ["created_at", "2018-12-02 22:26:52.114075"], ["updated_at", "2018-12-02 22:26:52.114075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.4ms)
UserMailer#password_reset: processed outbound mail in 11.0ms
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$pp/1/UVvAx.cgEgPdhimi.4McDUgDkNvaecjo09xaMvhYtjWkveNi"], ["created_at", "2018-12-02 22:26:52.394921"], ["updated_at", "2018-12-02 22:26:52.394921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:52.399949"], ["updated_at", "2018-12-02 22:26:52.399949"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:52 -0200
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:52.417933"], ["last_sign_in_at", "2018-12-02 22:26:52.417933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:52.419109"], ["id", 734]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"524"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 524], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Y1CpkOlKMiwo326GufmBLOaVvnAfMSfPBSR2OMJzxa8pQx9ue2X6C"], ["created_at", "2018-12-02 22:26:52.936450"], ["updated_at", "2018-12-02 22:26:52.936450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:52.941141"], ["updated_at", "2018-12-02 22:26:52.941141"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:52 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:52.947307"], ["last_sign_in_at", "2018-12-02 22:26:52.947307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:52.948364"], ["id", 735]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"525"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$XcbARuFZmXK/BbdvgNceG.Bzx8bEnJewlUtTWHLMhEB5xNY5hJalu"], ["created_at", "2018-12-02 22:26:53.398446"], ["updated_at", "2018-12-02 22:26:53.398446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:53.404135"], ["updated_at", "2018-12-02 22:26:53.404135"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:53 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:53.411120"], ["last_sign_in_at", "2018-12-02 22:26:53.411120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:53.412163"], ["id", 736]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"526", "user_id"=>"736"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:53 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"526", "user_id"=>"736"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$deEiXlhyb1hKP7gjp4GVKe7lt7Fz8nKJvYCv7srbJEgOuTz19WMXm"], ["created_at", "2018-12-02 22:26:54.189082"], ["updated_at", "2018-12-02 22:26:54.189082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:54.194905"], ["updated_at", "2018-12-02 22:26:54.194905"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:54 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:54.201971"], ["last_sign_in_at", "2018-12-02 22:26:54.201971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:54.203130"], ["id", 737]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"527", "user_id"=>"737"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:54 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"527", "user_id"=>"737"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 527], ["user_id", 737], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$9xUAZVdgA.NuQqk0aMnjmulrLiRpl1NgW2SEhepZ1l9ADgCXWijii"], ["created_at", "2018-12-02 22:26:55.011046"], ["updated_at", "2018-12-02 22:26:55.011046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:55.015901"], ["updated_at", "2018-12-02 22:26:55.015901"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:55 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:55.023645"], ["last_sign_in_at", "2018-12-02 22:26:55.023645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:55.024866"], ["id", 738]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"528", "user_id"=>"738"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:55 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"528", "user_id"=>"738"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 528], ["user_id", 738], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$To/mktlNijjSz5pLJa09Ges07uB5/vHSkmRVz5iVh2DBkA2jVUMeC"], ["created_at", "2018-12-02 22:26:55.850827"], ["updated_at", "2018-12-02 22:26:55.850827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:55.856582"], ["updated_at", "2018-12-02 22:26:55.856582"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:55 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:55.864422"], ["last_sign_in_at", "2018-12-02 22:26:55.864422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:55.865635"], ["id", 739]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"529"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 529], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$xijpSs//sk5BMj99pxhP4uhJzyLKxpVFc892FTfj1YavM0QeIpGVq"], ["created_at", "2018-12-02 22:26:56.361522"], ["updated_at", "2018-12-02 22:26:56.361522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:56.366735"], ["updated_at", "2018-12-02 22:26:56.366735"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:26:56 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:56.373231"], ["last_sign_in_at", "2018-12-02 22:26:56.373231"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:56.374312"], ["id", 740]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"530"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$bjB/JrrrnoqCJvRgb6xa0.e3P9lWpJMbWh4Izp4RMwS6carlEzzUi"], ["created_at", "2018-12-02 22:26:56.889666"], ["updated_at", "2018-12-02 22:26:56.889666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:56.894283"], ["updated_at", "2018-12-02 22:26:56.894283"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 531], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 741], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 741], ["room_id", 531], ["created_at", "2018-12-02 22:26:56.909343"], ["updated_at", "2018-12-02 22:26:56.909343"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/531” for 127.0.0.1 at 2018-12-02 20:26:56 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:56.916152"], ["last_sign_in_at", "2018-12-02 22:26:56.916152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:56.917274"], ["id", 741]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"531"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 531], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '531')[0m
Rendered appointments/show.html.erb within layouts/application (15.6ms)
Rendered layouts/_header-user.html.erb (4.8ms)
Completed 200 OK in 486ms (Views: 479.9ms | ActiveRecord: 1.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dKyOl92OKV8whGZkhpmxCO77GbnGVwMAmLaTrVvcmLLztVlqzIIkm"], ["created_at", "2018-12-02 22:26:57.575711"], ["updated_at", "2018-12-02 22:26:57.575711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:57.581298"], ["updated_at", "2018-12-02 22:26:57.581298"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 532], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 742], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 742], ["room_id", 532], ["created_at", "2018-12-02 22:26:57.592850"], ["updated_at", "2018-12-02 22:26:57.592850"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 532], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 742], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 742], ["room_id", 532], ["created_at", "2018-12-02 22:26:57.602600"], ["updated_at", "2018-12-02 22:26:57.602600"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:26:57 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:57.607947"], ["last_sign_in_at", "2018-12-02 22:26:57.607947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:57.608993"], ["id", 742]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 742]] Rendered appointments/my_appointments.html.erb within layouts/application (6.2ms) Rendered layouts/_header-user.html.erb (4.4ms)
Completed 200 OK in 80ms (Views: 69.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$6U7pH6OPA6KM7Rh0tN5czuCIGv6hiRTgAwIUdaL6kM1.YvaEgMyzm"], ["created_at", "2018-12-02 22:26:57.863277"], ["updated_at", "2018-12-02 22:26:57.863277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:57.868192"], ["updated_at", "2018-12-02 22:26:57.868192"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 533], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 743], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 743], ["room_id", 533], ["created_at", "2018-12-02 22:26:57.878811"], ["updated_at", "2018-12-02 22:26:57.878811"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 533], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 743], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 743], ["room_id", 533], ["created_at", "2018-12-02 22:26:57.887568"], ["updated_at", "2018-12-02 22:26:57.887568"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:26:57 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:57.893806"], ["last_sign_in_at", "2018-12-02 22:26:57.893806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:57.895375"], ["id", 743]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 743]] Rendered appointments/my_appointments.html.erb within layouts/application (6.2ms) Rendered layouts/_header-user.html.erb (4.2ms)
Completed 200 OK in 62ms (Views: 60.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$oJcFv7.nCEUTPF8zgUlqgO8r8BvkfRG47bwyYN/Dflm8bxjLLSuZm"], ["created_at", "2018-12-02 22:26:58.130065"], ["updated_at", "2018-12-02 22:26:58.130065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:58.135980"], ["updated_at", "2018-12-02 22:26:58.135980"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 534], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 744], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 744], ["room_id", 534], ["created_at", "2018-12-02 22:26:58.147365"], ["updated_at", "2018-12-02 22:26:58.147365"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/166” for 127.0.0.1 at 2018-12-02 20:26:58 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:58.153847"], ["last_sign_in_at", "2018-12-02 22:26:58.153847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:58.154991"], ["id", 744]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"166"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$FqtpKNf1di5Cv021c1tuM.mUmv.3HVW1Rq6wuc7atne.TUYXGVJW."], ["created_at", "2018-12-02 22:26:58.670173"], ["updated_at", "2018-12-02 22:26:58.670173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:58.675999"], ["updated_at", "2018-12-02 22:26:58.675999"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$g9mq5Vd69ND9SxOlAi5l/eKLOU3Z21ifMTDEf1PccE0eE/PsaU8QK"], ["created_at", "2018-12-02 22:26:58.841129"], ["updated_at", "2018-12-02 22:26:58.841129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 535], ["LIMIT", 1]]
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 746], ["room_id", 535], ["created_at", "2018-12-02 22:26:58.853104"], ["updated_at", "2018-12-02 22:26:58.853104"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 22:26:58.857846"], ["id", 167]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 535], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 746], ["room_id", 535], ["created_at", "2018-12-02 22:26:58.867476"], ["updated_at", "2018-12-02 22:26:58.867476"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 22:26:58.872039"], ["id", 168]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 20:26:58 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:58.877272"], ["last_sign_in_at", "2018-12-02 22:26:58.877272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:58.878670"], ["id", 745]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (1.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]] [1m[36mRoom Load (2.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 535], ["LIMIT", 1]] [1m[36mCACHE User Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 746], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 535], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (53.6ms) Rendered layouts/_header-admin.html.erb (5.0ms)
Completed 200 OK in 128ms (Views: 117.3ms | ActiveRecord: 7.1ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$ORTADHu7ZY.fYIHHB/uH6ebfapoPeHkzZCmNlqz4yZHs/zIGDHp0G"], ["created_at", "2018-12-02 22:26:59.177630"], ["updated_at", "2018-12-02 22:26:59.177630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:26:59.184245"], ["updated_at", "2018-12-02 22:26:59.184245"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$8CKEzD2s7tXeZQBoyjp3yOc0aw2p.FmoHCltfvnrsOIQmln7/ev6e"], ["created_at", "2018-12-02 22:26:59.351120"], ["updated_at", "2018-12-02 22:26:59.351120"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 536], ["LIMIT", 1]]
[1m[36mUser Load (1.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 748], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 748], ["room_id", 536], ["created_at", "2018-12-02 22:26:59.363961"], ["updated_at", "2018-12-02 22:26:59.363961"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 22:26:59.370539"], ["id", 169]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 536], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 748], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 748], ["room_id", 536], ["created_at", "2018-12-02 22:26:59.382479"], ["updated_at", "2018-12-02 22:26:59.382479"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 22:26:59.387013"], ["id", 170]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 20:26:59 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:59.393247"], ["last_sign_in_at", "2018-12-02 22:26:59.393247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:59.394957"], ["id", 747]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 748], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 536], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 748], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 536], ["LIMIT", 1]] [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (22.9ms) Rendered layouts/_header-admin.html.erb (5.1ms)
Completed 200 OK in 113ms (Views: 105.7ms | ActiveRecord: 3.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Gy3p5OauBoTEcMpv/Q8L3uCnLal7zV58yO92tz09oBaTDfcca6aee"], ["created_at", "2018-12-02 22:26:59.717708"], ["updated_at", "2018-12-02 22:26:59.717708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 20:26:59 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:26:59.724964"], ["last_sign_in_at", "2018-12-02 22:26:59.724964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:26:59.726858"], ["id", 749]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (14.2ms) Rendered layouts/_header-admin.html.erb (5.4ms)
Completed 200 OK in 107ms (Views: 105.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$qYQbPu.Q/.I5cFvjQ6VdDeZKNZossvWmEUleXa5hKu2yNMitu9I9K"], ["created_at", "2018-12-02 22:27:00.013759"], ["updated_at", "2018-12-02 22:27:00.013759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 20:27:00 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:00.020054"], ["last_sign_in_at", "2018-12-02 22:27:00.020054"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:00.021310"], ["id", 750]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Vi/MKjgBShjjzE94ztejCespm22mu8czs9D7FQg/1QZYKKTI3GMMG"], ["created_at", "2018-12-02 22:27:00.201575"], ["updated_at", "2018-12-02 22:27:00.201575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 20:27:00 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:00.207685"], ["last_sign_in_at", "2018-12-02 22:27:00.207685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:00.208935"], ["id", 751]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (11.3ms) Rendered layouts/_header-user.html.erb (4.0ms)
Completed 200 OK in 83ms (Views: 81.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Sf0JNSGf4GXDfiABfqs9d.2cpu9hsCDfrch9LfpZMqsN0rHXUxwPi"], ["created_at", "2018-12-02 22:27:00.461788"], ["updated_at", "2018-12-02 22:27:00.461788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 20:27:00 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:00.468007"], ["last_sign_in_at", "2018-12-02 22:27:00.468007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:00.469000"], ["id", 752]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (10.4ms) Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 106ms (Views: 104.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 20:27:00 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$40HLw6mx7nVbobE7We62ludqs1TgyIly140GnAHK3Mo4Sgtu1wgzK"], ["created_at", "2018-12-02 22:27:00.755262"], ["updated_at", "2018-12-02 22:27:00.755262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:00.759638"], ["updated_at", "2018-12-02 22:27:00.759638"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/537” for 127.0.0.1 at 2018-12-02 20:27:00 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:00.765110"], ["last_sign_in_at", "2018-12-02 22:27:00.765110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:00.766283"], ["id", 753]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"537"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 537], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (3.9ms)
Completed 200 OK in 60ms (Views: 56.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$cK6SVXrIQiin8xKErVHgnO.D3URKl7pRx/ao.6Gme2D6gA6mQvdTe"], ["created_at", "2018-12-02 22:27:00.996083"], ["updated_at", "2018-12-02 22:27:00.996083"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.000811"], ["updated_at", "2018-12-02 22:27:01.000811"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/538” for 127.0.0.1 at 2018-12-02 20:27:01 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:01.005709"], ["last_sign_in_at", "2018-12-02 22:27:01.005709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:01.006881"], ["id", 754]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"538"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 538], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 61ms (Views: 57.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.078608"], ["updated_at", "2018-12-02 22:27:01.078608"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/539” for 127.0.0.1 at 2018-12-02 20:27:01 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"539"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$FQuja3Tkg/JCmHofg6tDfe0Rk4CJ.EKCAVIWbEpAn2n3oscK6YkXy"], ["created_at", "2018-12-02 22:27:01.250851"], ["updated_at", "2018-12-02 22:27:01.250851"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.255463"], ["updated_at", "2018-12-02 22:27:01.255463"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/540” for 127.0.0.1 at 2018-12-02 20:27:01 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:01.260665"], ["last_sign_in_at", "2018-12-02 22:27:01.260665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:01.261786"], ["id", 755]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"540"}
Rendering rooms/filtro.html.erb within layouts/application
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/filtro.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 65ms (Views: 62.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.339513"], ["updated_at", "2018-12-02 22:27:01.339513"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/541” for 127.0.0.1 at 2018-12-02 20:27:01 -0200 Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"541"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$lBsxHwyVqP6fFm9m.r8kCOw1i9ENu.p7zBoqMhbc3rnaoMnfAt0jG"], ["created_at", "2018-12-02 22:27:01.519242"], ["updated_at", "2018-12-02 22:27:01.519242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.523736"], ["updated_at", "2018-12-02 22:27:01.523736"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/542/edit” for 127.0.0.1 at 2018-12-02 20:27:01 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:01.528280"], ["last_sign_in_at", "2018-12-02 22:27:01.528280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:01.529510"], ["id", 756]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"542"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 542], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 62ms (Views: 59.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$sJnglhCYMVLQPZdwJ.giRuS0AWXzEdmlslU5oMs9n/f84skdscAi."], ["created_at", "2018-12-02 22:27:01.761254"], ["updated_at", "2018-12-02 22:27:01.761254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.767408"], ["updated_at", "2018-12-02 22:27:01.767408"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/543/edit” for 127.0.0.1 at 2018-12-02 20:27:01 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:01.774768"], ["last_sign_in_at", "2018-12-02 22:27:01.774768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:01.775779"], ["id", 757]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"543"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 543], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (9.7ms)
Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 64ms (Views: 61.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:01.850701"], ["updated_at", "2018-12-02 22:27:01.850701"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/544” for 127.0.0.1 at 2018-12-02 20:27:01 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"544"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$B64mATMWYL..vkjPSdL06O6mFDmia03o6Hojpxxy0dl3mESIBre1K"], ["created_at", "2018-12-02 22:27:02.022316"], ["updated_at", "2018-12-02 22:27:02.022316"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 20:27:02 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:02.028923"], ["last_sign_in_at", "2018-12-02 22:27:02.028923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:02.030010"], ["id", 758]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$9B9DQmoQaS7MuXIQKfSg7.Et9mF9ykhHJ4lRuPkaQvH9IEsWRPcPO"], ["created_at", "2018-12-02 22:27:02.487775"], ["updated_at", "2018-12-02 22:27:02.487775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 20:27:02 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:02.494743"], ["last_sign_in_at", "2018-12-02 22:27:02.494743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:02.495845"], ["id", 759]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$pEaZ2w0QUb13oO30BnVtPuBTnzYsBG5Z46Enk0RjFJqnvukfTe7XW"], ["created_at", "2018-12-02 22:27:02.980061"], ["updated_at", "2018-12-02 22:27:02.980061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 20:27:02 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:02.985816"], ["last_sign_in_at", "2018-12-02 22:27:02.985816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:02.987265"], ["id", 760]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$MMasp1VBfdd/rRl/PBGK.e5VeHI5SZKJNri5kXDjs92Z94Ox.YZn."], ["created_at", "2018-12-02 22:27:03.459306"], ["updated_at", "2018-12-02 22:27:03.459306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 20:27:03 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:03.465653"], ["last_sign_in_at", "2018-12-02 22:27:03.465653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:03.466771"], ["id", 761]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$6.kSWW3cHc3qayLMpghTqOPqc6lQD0nzfk.siK12PzHybY9m72jpS"], ["created_at", "2018-12-02 22:27:03.976572"], ["updated_at", "2018-12-02 22:27:03.976572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 20:27:03 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:03.984332"], ["last_sign_in_at", "2018-12-02 22:27:03.984332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:03.985478"], ["id", 762]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:173:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$6umzsHdkppJ1tH3P5oskieLZqC6z0IvxqnwqUJu4JzIR5sQ0U1kmG"], ["created_at", "2018-12-02 22:27:04.455890"], ["updated_at", "2018-12-02 22:27:04.455890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:04.461487"], ["updated_at", "2018-12-02 22:27:04.461487"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/545” for 127.0.0.1 at 2018-12-02 20:27:04 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:04.468923"], ["last_sign_in_at", "2018-12-02 22:27:04.468923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:04.470294"], ["id", 763]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"545"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$SfTN6REPtQajzlv0JOMHlOeLN5Q8ne6UFA3qzmAbKJ.YZ1JnRhWxm"], ["created_at", "2018-12-02 22:27:04.936631"], ["updated_at", "2018-12-02 22:27:04.936631"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:04.941415"], ["updated_at", "2018-12-02 22:27:04.941415"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/546” for 127.0.0.1 at 2018-12-02 20:27:04 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:04.947662"], ["last_sign_in_at", "2018-12-02 22:27:04.947662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:04.948737"], ["id", 764]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"546"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$QXMwUo0JM7x/wgZgej.SleHQyWK4Q2ZAfOOUGUHX27/d1t2S10.56"], ["created_at", "2018-12-02 22:27:05.433078"], ["updated_at", "2018-12-02 22:27:05.433078"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:05.438876"], ["updated_at", "2018-12-02 22:27:05.438876"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/547” for 127.0.0.1 at 2018-12-02 20:27:05 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:05.446938"], ["last_sign_in_at", "2018-12-02 22:27:05.446938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:05.448247"], ["id", 765]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"547"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$60GEPuJxijRtkb8pY91z5eFHFiH2gmiunjKsS7fxKeSwCO.EXCDEi"], ["created_at", "2018-12-02 22:27:05.958782"], ["updated_at", "2018-12-02 22:27:05.958782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:05.964283"], ["updated_at", "2018-12-02 22:27:05.964283"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/548” for 127.0.0.1 at 2018-12-02 20:27:05 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:05.971013"], ["last_sign_in_at", "2018-12-02 22:27:05.971013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:05.972277"], ["id", 766]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"548"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$4At2QdKOqwy7.lOElvoWaOl1t7plNrK3V4S8AGTBGZp6eGMepsG9G"], ["created_at", "2018-12-02 22:27:06.462660"], ["updated_at", "2018-12-02 22:27:06.462660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 20:27:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:06.469329"], ["last_sign_in_at", "2018-12-02 22:27:06.469329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:06.470389"], ["id", 767]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:222:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$cH7VQJypgfeKt7deXs4FZ.w5sxgqNz1IkgjqRYcl8jkLPho6C7V1K"], ["created_at", "2018-12-02 22:27:06.930564"], ["updated_at", "2018-12-02 22:27:06.930564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:06.936396"], ["updated_at", "2018-12-02 22:27:06.936396"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/549” for 127.0.0.1 at 2018-12-02 20:27:06 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:06.942273"], ["last_sign_in_at", "2018-12-02 22:27:06.942273"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:06.943564"], ["id", 768]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"549"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$ZCPO7tC4EK7jNVyYdIGBRu6pTR2j4ViwsV7yBY5LGhJF6/aIytuNa"], ["created_at", "2018-12-02 22:27:07.406208"], ["updated_at", "2018-12-02 22:27:07.406208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:07.410827"], ["updated_at", "2018-12-02 22:27:07.410827"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/550” for 127.0.0.1 at 2018-12-02 20:27:07 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:07.415891"], ["last_sign_in_at", "2018-12-02 22:27:07.415891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:07.416909"], ["id", 769]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"550"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$9mnFjMfCBiuCyyuq2ystTulhBTqovq1wkY3eShADbbPFbidLf0SWK"], ["created_at", "2018-12-02 22:27:07.894649"], ["updated_at", "2018-12-02 22:27:07.894649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:07.899019"], ["updated_at", "2018-12-02 22:27:07.899019"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/551” for 127.0.0.1 at 2018-12-02 20:27:07 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:07.903722"], ["last_sign_in_at", "2018-12-02 22:27:07.903722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:07.904748"], ["id", 770]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"551"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$HE1QckheVxbtyuY7XfxcpewwRLZ6q3quPl4W.Be4hf.BfPfFeGMfO"], ["created_at", "2018-12-02 22:27:08.371279"], ["updated_at", "2018-12-02 22:27:08.371279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:08.376932"], ["updated_at", "2018-12-02 22:27:08.376932"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/552” for 127.0.0.1 at 2018-12-02 20:27:08 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:08.383177"], ["last_sign_in_at", "2018-12-02 22:27:08.383177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:08.384274"], ["id", 771]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"552"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$h4EemZXOtENMi6.Pn4KPrO6y6U8GQpbXVZbXB3.pufoHqtbiOFu.G"], ["created_at", "2018-12-02 22:27:08.861434"], ["updated_at", "2018-12-02 22:27:08.861434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/search-rooms” for 127.0.0.1 at 2018-12-02 20:27:08 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:08.867964"], ["last_sign_in_at", "2018-12-02 22:27:08.867964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:08.869050"], ["id", 772]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_rooms as HTML
Rendering rooms/search_rooms.html.erb within layouts/application Rendered rooms/search_rooms.html.erb within layouts/application (6.2ms) Rendered layouts/_header-user.html.erb (4.1ms)
Completed 200 OK in 68ms (Views: 66.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$EGeub/Gisl5AEApwGcv.MeotFBbnda7RKD1gldDOa4R6t73bYhD/u"], ["created_at", "2018-12-02 22:27:09.115256"], ["updated_at", "2018-12-02 22:27:09.115256"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:09.120007"], ["updated_at", "2018-12-02 22:27:09.120007"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:09.124334"], ["updated_at", "2018-12-02 22:27:09.124334"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:09.128015"], ["updated_at", "2018-12-02 22:27:09.128015"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 553], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 773], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 773], ["room_id", 553], ["created_at", "2018-12-02 22:27:09.136133"], ["updated_at", "2018-12-02 22:27:09.136133"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/search-result” for 127.0.0.1 at 2018-12-02 20:27:09 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:09.141502"], ["last_sign_in_at", "2018-12-02 22:27:09.141502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:09.142586"], ["id", 773]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML
Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:289:in `block (6 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$3tP7vCrx09odVQSlGmE2b.xcMtV972ulM5HYqSf0Dtv0KEGMpKgka"], ["created_at", "2018-12-02 22:27:09.622945"], ["updated_at", "2018-12-02 22:27:09.622945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:09.628729"], ["updated_at", "2018-12-02 22:27:09.628729"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:09.633142"], ["updated_at", "2018-12-02 22:27:09.633142"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:27:09.637275"], ["updated_at", "2018-12-02 22:27:09.637275"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 556], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 774], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 774], ["room_id", 556], ["created_at", "2018-12-02 22:27:09.646512"], ["updated_at", "2018-12-02 22:27:09.646512"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/search-result” for 127.0.0.1 at 2018-12-02 20:27:09 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:27:09.651835"], ["last_sign_in_at", "2018-12-02 22:27:09.651835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:27:09.652959"], ["id", 774]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
Started GET “/” for 127.0.0.1 at 2018-12-02 20:36:23 -0200
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (1.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (85.8ms) Rendered layouts/_header-user.html.erb (4.5ms)
Completed 200 OK in 1215ms (Views: 1173.7ms | ActiveRecord: 10.0ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 20:36:29 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (68.4ms) Rendered layouts/_header-admin.html.erb (15.9ms)
Completed 200 OK in 232ms (Views: 215.4ms | ActiveRecord: 6.4ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-02 20:36:31 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (1.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (90.3ms) [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (5.4ms)
Completed 200 OK in 211ms (Views: 160.7ms | ActiveRecord: 8.4ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 20:36:43 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (13.9ms) Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 90ms (Views: 84.0ms | ActiveRecord: 1.3ms)
Started GET “/appointments/183” for 127.0.0.1 at 2018-12-02 20:36:44 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"183"}
[1m[36mRoom Load (2.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '183')[0m
Rendered appointments/show.html.erb within layouts/application (57.3ms)
[1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 150ms (Views: 105.5ms | ActiveRecord: 4.4ms)
Started POST “/appointments.183” for 127.0.0.1 at 2018-12-02 20:36:49 -0200 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "authenticity_token"=>"OI2ZB1C1MHW1FBZzrXc9I5j16jobrGGSFgxfdHy4a/0tmbwTT4hrQgEQkfQzVLchzz0456Ef4tpyeF5aM1ndEA==", "appointment_date"=>"2018-12-02", "start_time"=>"6:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m
Redirected to localhost:3000/backoffice Completed 200 OK in 9ms (ActiveRecord: 1.2ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-02 20:36:49 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (5.4ms) Rendered layouts/_header-admin.html.erb (4.0ms)
Completed 200 OK in 66ms (Views: 63.3ms | ActiveRecord: 0.6ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 20:36:51 -0200 Processing by RoomsController#index as HTML
Parameters: {"authenticity_token"=>"q4RpRZEe9B0OWYOOHqB/Izx96qwZEcFbeRzwoP/ZTqUd58aqJWDPIFGDhnJJqix33Ez1o2H4SMm8jzJMr5TCbw=="}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/index.html.erb within layouts/application (9.3ms)
Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 74ms (Views: 67.8ms | ActiveRecord: 1.3ms)
Started GET “/appointments/183” for 127.0.0.1 at 2018-12-02 20:36:53 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"183"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '183')[0m
Rendered appointments/show.html.erb within layouts/application (18.7ms)
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 71ms (Views: 65.3ms | ActiveRecord: 1.9ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-02 20:36:58 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (1.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (16.7ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 68ms (Views: 61.7ms | ActiveRecord: 3.4ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-02 20:37:02 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (12.1ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 74ms (Views: 69.7ms | ActiveRecord: 2.4ms)
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$tT2Z14.SJ5PeUpTaGX3Abum2GaHfG6Ze3ZTamXViru7hCEb02PnoW"], ["created_at", "2018-12-02 22:37:57.126248"], ["updated_at", "2018-12-02 22:37:57.126248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:37:57.154207"], ["updated_at", "2018-12-02 22:37:57.154207"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:37:57 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:37:57.184618"], ["last_sign_in_at", "2018-12-02 22:37:57.184618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:37:57.186075"], ["id", 775]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"559"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 559], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$rDwzyYY.01Q31l9cl6ObpuA5.IwP/P8ektoObz0DUrPZ8Loyz/t06"], ["created_at", "2018-12-02 22:37:57.818402"], ["updated_at", "2018-12-02 22:37:57.818402"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:37:57.822607"], ["updated_at", "2018-12-02 22:37:57.822607"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:37:57 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:37:57.828285"], ["last_sign_in_at", "2018-12-02 22:37:57.828285"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:37:57.829339"], ["id", 776]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"560"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$SLRUYJp.QF5XUXv4o.VsR.tejyfFK6W52Gv.gl52M7pL6gOPCQbZ6"], ["created_at", "2018-12-02 22:37:58.309452"], ["updated_at", "2018-12-02 22:37:58.309452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:37:58.314158"], ["updated_at", "2018-12-02 22:37:58.314158"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:37:58 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:37:58.320718"], ["last_sign_in_at", "2018-12-02 22:37:58.320718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:37:58.321761"], ["id", 777]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"561", "user_id"=>"777"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:37:58 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"561", "user_id"=>"777"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$yZqjni9vWB8oflFWHOzKC.mkm58Kby5zyHrQsgW0vCd7.nzkjm2oi"], ["created_at", "2018-12-02 22:37:59.125225"], ["updated_at", "2018-12-02 22:37:59.125225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:37:59.129691"], ["updated_at", "2018-12-02 22:37:59.129691"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:37:59 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:37:59.135909"], ["last_sign_in_at", "2018-12-02 22:37:59.135909"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:37:59.137139"], ["id", 778]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"562", "user_id"=>"778"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:37:59 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"562", "user_id"=>"778"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 562], ["user_id", 778], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$DdMW.M5CxeNxdYEUnCtQO.o/cUw3rIDPM3Knup/UuVVSWMD/Z5U8i"], ["created_at", "2018-12-02 22:38:00.027991"], ["updated_at", "2018-12-02 22:38:00.027991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:00.032238"], ["updated_at", "2018-12-02 22:38:00.032238"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:00 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:00.038435"], ["last_sign_in_at", "2018-12-02 22:38:00.038435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:00.039474"], ["id", 779]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"563", "user_id"=>"779"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:00 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"563", "user_id"=>"779"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 563], ["user_id", 779], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$aTZ0/rI2l9ESOpiyQOkf1eXNkBpS.KPjYb5jA8X9UZEKbE202Uar."], ["created_at", "2018-12-02 22:38:00.843205"], ["updated_at", "2018-12-02 22:38:00.843205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:00.847504"], ["updated_at", "2018-12-02 22:38:00.847504"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:00 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:00.852989"], ["last_sign_in_at", "2018-12-02 22:38:00.852989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:00.854195"], ["id", 780]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"564"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 564], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jovucjvFR1v1ulN1YeCxkOBk2k/3jxDTYpIaLYjmc95.gpEuFG33."], ["created_at", "2018-12-02 22:38:01.333768"], ["updated_at", "2018-12-02 22:38:01.333768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:01.338243"], ["updated_at", "2018-12-02 22:38:01.338243"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:01 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:01.343876"], ["last_sign_in_at", "2018-12-02 22:38:01.343876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:01.344899"], ["id", 781]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"565"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$L889.KkHbsLJt/QeVdQWDO7Mz940tHK2DItnrBpt3aPfrTY0x11dW"], ["created_at", "2018-12-02 22:38:01.828297"], ["updated_at", "2018-12-02 22:38:01.828297"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:01.834432"], ["updated_at", "2018-12-02 22:38:01.834432"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 566], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 782], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 782], ["room_id", 566], ["created_at", "2018-12-02 22:38:01.874385"], ["updated_at", "2018-12-02 22:38:01.874385"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/566” for 127.0.0.1 at 2018-12-02 20:38:01 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:01.880015"], ["last_sign_in_at", "2018-12-02 22:38:01.880015"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:01.881127"], ["id", 782]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"566"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 566], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '566')[0m
Rendered appointments/show.html.erb within layouts/application (17.3ms)
Rendered layouts/_header-user.html.erb (9.1ms)
Completed 200 OK in 503ms (Views: 496.9ms | ActiveRecord: 1.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vptBJQGeBmIHdG4WYLtss.Hbv3qaI4Gt1scQZn6r4HiaiCDM3QhQ2"], ["created_at", "2018-12-02 22:38:02.558527"], ["updated_at", "2018-12-02 22:38:02.558527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:02.566417"], ["updated_at", "2018-12-02 22:38:02.566417"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 567], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 783], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 783], ["room_id", 567], ["created_at", "2018-12-02 22:38:02.582175"], ["updated_at", "2018-12-02 22:38:02.582175"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 567], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 783], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 783], ["room_id", 567], ["created_at", "2018-12-02 22:38:02.606417"], ["updated_at", "2018-12-02 22:38:02.606417"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:38:02 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:02.613196"], ["last_sign_in_at", "2018-12-02 22:38:02.613196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:02.615217"], ["id", 783]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 783]] Rendered appointments/my_appointments.html.erb within layouts/application (12.2ms) Rendered layouts/_header-user.html.erb (4.6ms)
Completed 200 OK in 172ms (Views: 125.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$xZGRF4u5RsBf0eSB.dwz.u3Y8g.DJVspcyJO309v5LS8AktpoAFIi"], ["created_at", "2018-12-02 22:38:02.956651"], ["updated_at", "2018-12-02 22:38:02.956651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:02.961098"], ["updated_at", "2018-12-02 22:38:02.961098"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 568], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 784], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 784], ["room_id", 568], ["created_at", "2018-12-02 22:38:02.970142"], ["updated_at", "2018-12-02 22:38:02.970142"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 568], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 784], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 784], ["room_id", 568], ["created_at", "2018-12-02 22:38:02.979405"], ["updated_at", "2018-12-02 22:38:02.979405"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:38:02 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:02.984538"], ["last_sign_in_at", "2018-12-02 22:38:02.984538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:02.985492"], ["id", 784]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 784]] Rendered appointments/my_appointments.html.erb within layouts/application (5.2ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 75ms (Views: 72.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$fwhaWws9QfBxzMqYggLzjO3MQBiXmIYpR3lcklK9fem8e.16sohgu"], ["created_at", "2018-12-02 22:38:03.235439"], ["updated_at", "2018-12-02 22:38:03.235439"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:03.239747"], ["updated_at", "2018-12-02 22:38:03.239747"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 569], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 785], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 785], ["room_id", 569], ["created_at", "2018-12-02 22:38:03.247730"], ["updated_at", "2018-12-02 22:38:03.247730"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/178” for 127.0.0.1 at 2018-12-02 20:38:03 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:03.252968"], ["last_sign_in_at", "2018-12-02 22:38:03.252968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:03.254134"], ["id", 785]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"178"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jTrs29yv24.AKq2mamRa2.DRHeimPDGakltQCbv.Yg5A5CSgSwT2q"], ["created_at", "2018-12-02 22:38:34.888927"], ["updated_at", "2018-12-02 22:38:34.888927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:34.922268"], ["updated_at", "2018-12-02 22:38:34.922268"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:34 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:34.958778"], ["last_sign_in_at", "2018-12-02 22:38:34.958778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:34.960135"], ["id", 786]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"570"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 570], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$2C4GcAi/0rBReNeO..wd5e7jCtlAXS.oGGr3H66UUmL/1StP887lS"], ["created_at", "2018-12-02 22:38:35.511093"], ["updated_at", "2018-12-02 22:38:35.511093"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:35.517447"], ["updated_at", "2018-12-02 22:38:35.517447"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:35 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:35.524771"], ["last_sign_in_at", "2018-12-02 22:38:35.524771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:35.525943"], ["id", 787]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"571"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$mXDeH3EzjOlXryMJVOAiu.accB0wRSpZoI/s9umn0GYHBx5Rkswbi"], ["created_at", "2018-12-02 22:38:36.003641"], ["updated_at", "2018-12-02 22:38:36.003641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:36.008607"], ["updated_at", "2018-12-02 22:38:36.008607"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:36 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:36.015070"], ["last_sign_in_at", "2018-12-02 22:38:36.015070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:36.016395"], ["id", 788]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"572", "user_id"=>"788"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:36 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"572", "user_id"=>"788"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$GGIqm85QroATIS8srK02wed/i9ZNwy04/Dw7rYlT4mE8AihEY702O"], ["created_at", "2018-12-02 22:38:36.912588"], ["updated_at", "2018-12-02 22:38:36.912588"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:36.920064"], ["updated_at", "2018-12-02 22:38:36.920064"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:36 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:36.930283"], ["last_sign_in_at", "2018-12-02 22:38:36.930283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:36.931860"], ["id", 789]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"573", "user_id"=>"789"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:37 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"573", "user_id"=>"789"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 573], ["user_id", 789], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$3G2w8Jabidf2ZtTNMmEn5Ov5BQxMGMR4/D9gpiPTHzlWf7WASJ9.y"], ["created_at", "2018-12-02 22:38:37.789660"], ["updated_at", "2018-12-02 22:38:37.789660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:37.793836"], ["updated_at", "2018-12-02 22:38:37.793836"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:37 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:37.800435"], ["last_sign_in_at", "2018-12-02 22:38:37.800435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:37.801402"], ["id", 790]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"574", "user_id"=>"790"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:38 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"574", "user_id"=>"790"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 574], ["user_id", 790], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$p2p2SLz3Hbd1Bse//wixbesgyZmfLnM5obN1rSIK0rR7bfSZGz0RS"], ["created_at", "2018-12-02 22:38:38.618190"], ["updated_at", "2018-12-02 22:38:38.618190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:38.622768"], ["updated_at", "2018-12-02 22:38:38.622768"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:38 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:38.629575"], ["last_sign_in_at", "2018-12-02 22:38:38.629575"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:38.630770"], ["id", 791]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"575"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 575], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$g8qlS9hxkzXe.wur0kmkh.OgeK2/K2LwCBUnPPU5b7RGbQGQor30a"], ["created_at", "2018-12-02 22:38:39.120161"], ["updated_at", "2018-12-02 22:38:39.120161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:39.124493"], ["updated_at", "2018-12-02 22:38:39.124493"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:38:39 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:39.130561"], ["last_sign_in_at", "2018-12-02 22:38:39.130561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:39.131731"], ["id", 792]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"576"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OMHbE/4oDw5rmHcJbAz8AutIHp.ceL04iW6hYPkhTZoNyKxgIGD3e"], ["created_at", "2018-12-02 22:38:39.760743"], ["updated_at", "2018-12-02 22:38:39.760743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:39.766728"], ["updated_at", "2018-12-02 22:38:39.766728"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 577], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 793], ["room_id", 577], ["created_at", "2018-12-02 22:38:39.820368"], ["updated_at", "2018-12-02 22:38:39.820368"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/577” for 127.0.0.1 at 2018-12-02 20:38:39 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:39.826843"], ["last_sign_in_at", "2018-12-02 22:38:39.826843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:39.828763"], ["id", 793]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"577"}
[1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 577], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '577')[0m
Rendered appointments/show.html.erb within layouts/application (23.7ms)
Rendered layouts/_header-user.html.erb (3.9ms)
Completed 200 OK in 471ms (Views: 465.0ms | ActiveRecord: 1.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$7HjsqJ2C3oRCuL1deyLxEuRwQASPlt9O4PX2sR3AWC5IWbDMM16Hm"], ["created_at", "2018-12-02 22:38:40.478840"], ["updated_at", "2018-12-02 22:38:40.478840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:40.483272"], ["updated_at", "2018-12-02 22:38:40.483272"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 578], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 794], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 794], ["room_id", 578], ["created_at", "2018-12-02 22:38:40.492010"], ["updated_at", "2018-12-02 22:38:40.492010"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 578], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 794], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 794], ["room_id", 578], ["created_at", "2018-12-02 22:38:40.500652"], ["updated_at", "2018-12-02 22:38:40.500652"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:38:40 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:40.506721"], ["last_sign_in_at", "2018-12-02 22:38:40.506721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:40.507868"], ["id", 794]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 794]] Rendered appointments/my_appointments.html.erb within layouts/application (5.8ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 69ms (Views: 59.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Mplac6wo8dojUKf1nmMS5.ZgY6bw3y48QenFtRHtOelomoMLPz7mm"], ["created_at", "2018-12-02 22:38:40.749327"], ["updated_at", "2018-12-02 22:38:40.749327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:40.753597"], ["updated_at", "2018-12-02 22:38:40.753597"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 579], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 795], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 795], ["room_id", 579], ["created_at", "2018-12-02 22:38:40.761474"], ["updated_at", "2018-12-02 22:38:40.761474"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 579], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 795], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 795], ["room_id", 579], ["created_at", "2018-12-02 22:38:40.770119"], ["updated_at", "2018-12-02 22:38:40.770119"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:38:40 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:40.775132"], ["last_sign_in_at", "2018-12-02 22:38:40.775132"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:40.776225"], ["id", 795]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 795]] Rendered appointments/my_appointments.html.erb within layouts/application (4.4ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 54ms (Views: 51.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$JINCqs0FrZ4AepM9OAvQdudAT7EwpBIlOVlpyPhsyaLCUDRT5813."], ["created_at", "2018-12-02 22:38:40.998831"], ["updated_at", "2018-12-02 22:38:40.998831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:38:41.002966"], ["updated_at", "2018-12-02 22:38:41.002966"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 580], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 796], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 796], ["room_id", 580], ["created_at", "2018-12-02 22:38:41.010443"], ["updated_at", "2018-12-02 22:38:41.010443"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/184” for 127.0.0.1 at 2018-12-02 20:38:41 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:38:41.015180"], ["last_sign_in_at", "2018-12-02 22:38:41.015180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:38:41.016270"], ["id", 796]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"184"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (11.0ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$zJDMRUs1ytOoBlMzqdSLde3.HVQM/M9VikIn4fAGb2pl/DCvanVny"], ["created_at", "2018-12-02 22:39:08.820833"], ["updated_at", "2018-12-02 22:39:08.820833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:08.848010"], ["updated_at", "2018-12-02 22:39:08.848010"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:08 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:08.878542"], ["last_sign_in_at", "2018-12-02 22:39:08.878542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:08.879765"], ["id", 797]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"581"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 581], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$iizvnQc5Tzy4eircts3c6.bUZpFTkhEj9VQTkXywRFihbJB6V2sAW"], ["created_at", "2018-12-02 22:39:09.408927"], ["updated_at", "2018-12-02 22:39:09.408927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:09.413263"], ["updated_at", "2018-12-02 22:39:09.413263"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:09 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:09.418920"], ["last_sign_in_at", "2018-12-02 22:39:09.418920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:09.420033"], ["id", 798]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"582"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.MR3A1hxC4Q7ZwayemmSYumBNN26hPzddlebas2cYDTfhXl7rCNfe"], ["created_at", "2018-12-02 22:39:09.892346"], ["updated_at", "2018-12-02 22:39:09.892346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:09.896726"], ["updated_at", "2018-12-02 22:39:09.896726"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:09 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:09.904432"], ["last_sign_in_at", "2018-12-02 22:39:09.904432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:09.905836"], ["id", 799]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"583", "user_id"=>"799"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:10 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"583", "user_id"=>"799"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$2YLpSJKzy/zyHCgNHbcM/e.ZC67EtEQPaF5ihsWh0D1fmwUMXhM12"], ["created_at", "2018-12-02 22:39:10.717115"], ["updated_at", "2018-12-02 22:39:10.717115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:10.721300"], ["updated_at", "2018-12-02 22:39:10.721300"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:10 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:10.727149"], ["last_sign_in_at", "2018-12-02 22:39:10.727149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:10.728212"], ["id", 800]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"584", "user_id"=>"800"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:11 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"584", "user_id"=>"800"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 584], ["user_id", 800], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OtQ5gBkk8b3gCqvxiTc5feVq.TWD3Zkledf.zQERLk7wCXZNcjSui"], ["created_at", "2018-12-02 22:39:11.520458"], ["updated_at", "2018-12-02 22:39:11.520458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:11.524739"], ["updated_at", "2018-12-02 22:39:11.524739"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:11 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:11.531169"], ["last_sign_in_at", "2018-12-02 22:39:11.531169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:11.532386"], ["id", 801]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"585", "user_id"=>"801"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:11 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"585", "user_id"=>"801"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 585], ["user_id", 801], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$hz.hKIstu8k43Jd.f5a.qu9nRNIaz.S1XCI59zR..nVsazgj3zVrm"], ["created_at", "2018-12-02 22:39:12.402315"], ["updated_at", "2018-12-02 22:39:12.402315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:12.406809"], ["updated_at", "2018-12-02 22:39:12.406809"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:12 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:12.412860"], ["last_sign_in_at", "2018-12-02 22:39:12.412860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:12.414166"], ["id", 802]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"586"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 586], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$/HvcIgAeqKfBb4rh.jjdQ.9qiqmRQ1YNgfUBfvb7Qhku/fHh0e6tK"], ["created_at", "2018-12-02 22:39:12.894619"], ["updated_at", "2018-12-02 22:39:12.894619"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:12.899010"], ["updated_at", "2018-12-02 22:39:12.899010"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:39:12 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:12.904720"], ["last_sign_in_at", "2018-12-02 22:39:12.904720"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:12.905845"], ["id", 803]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"587"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$q27/cWpwReaunwS4r.4rD.AqSITOqhLTXLZGuJBV8ez5UY3dB3z7u"], ["created_at", "2018-12-02 22:39:13.388112"], ["updated_at", "2018-12-02 22:39:13.388112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:13.392676"], ["updated_at", "2018-12-02 22:39:13.392676"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 588], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 804], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 804], ["room_id", 588], ["created_at", "2018-12-02 22:39:13.433056"], ["updated_at", "2018-12-02 22:39:13.433056"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/588” for 127.0.0.1 at 2018-12-02 20:39:13 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:13.438485"], ["last_sign_in_at", "2018-12-02 22:39:13.438485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:13.439521"], ["id", 804]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"588"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 588], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '588')[0m
Rendered appointments/show.html.erb within layouts/application (15.7ms)
Rendered layouts/_header-user.html.erb (10.2ms)
Completed 200 OK in 438ms (Views: 431.5ms | ActiveRecord: 1.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$9z6bfA9Wro88bOKVgRtwVuxMpT7MtN4UY3a74Qx/x9lnxncksIsHe"], ["created_at", "2018-12-02 22:39:14.059945"], ["updated_at", "2018-12-02 22:39:14.059945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:14.066821"], ["updated_at", "2018-12-02 22:39:14.066821"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 589], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 805], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 805], ["room_id", 589], ["created_at", "2018-12-02 22:39:14.085927"], ["updated_at", "2018-12-02 22:39:14.085927"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 589], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 805], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 805], ["room_id", 589], ["created_at", "2018-12-02 22:39:14.101605"], ["updated_at", "2018-12-02 22:39:14.101605"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:39:14 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:14.108521"], ["last_sign_in_at", "2018-12-02 22:39:14.108521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:14.109636"], ["id", 805]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 805]] Rendered appointments/my_appointments.html.erb within layouts/application (9.7ms) Rendered layouts/_header-user.html.erb (4.4ms)
Completed 200 OK in 136ms (Views: 117.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$NKlcBVyTxDfIYxOsv7WF2uX1Xo1I1YqN7S4h6RkvPVsi9Jx4.AUu2"], ["created_at", "2018-12-02 22:39:14.416710"], ["updated_at", "2018-12-02 22:39:14.416710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:14.421139"], ["updated_at", "2018-12-02 22:39:14.421139"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 806], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 806], ["room_id", 590], ["created_at", "2018-12-02 22:39:14.430008"], ["updated_at", "2018-12-02 22:39:14.430008"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 590], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 806], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 806], ["room_id", 590], ["created_at", "2018-12-02 22:39:14.438982"], ["updated_at", "2018-12-02 22:39:14.438982"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:39:14 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:14.444634"], ["last_sign_in_at", "2018-12-02 22:39:14.444634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:14.445852"], ["id", 806]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 806]] Rendered appointments/my_appointments.html.erb within layouts/application (4.9ms) Rendered layouts/_header-user.html.erb (12.6ms)
Completed 200 OK in 82ms (Views: 79.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$D0o3fFRVzW2gPwbBWMpVQOIbJPz5ekPv0k75ydwGtjTjOeRLG0bK."], ["created_at", "2018-12-02 22:39:14.696410"], ["updated_at", "2018-12-02 22:39:14.696410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:39:14.700628"], ["updated_at", "2018-12-02 22:39:14.700628"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 591], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 807], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 807], ["room_id", 591], ["created_at", "2018-12-02 22:39:14.708065"], ["updated_at", "2018-12-02 22:39:14.708065"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/190” for 127.0.0.1 at 2018-12-02 20:39:14 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:39:14.712797"], ["last_sign_in_at", "2018-12-02 22:39:14.712797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:39:14.713727"], ["id", 807]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"190"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$1.UBfkrdCua6DikQDbOfpOVb6iQXJHfzTpY6YvW7aGALiWZnTI822"], ["created_at", "2018-12-02 22:42:32.510269"], ["updated_at", "2018-12-02 22:42:32.510269"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:32.540741"], ["updated_at", "2018-12-02 22:42:32.540741"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:32 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:32.573738"], ["last_sign_in_at", "2018-12-02 22:42:32.573738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:32.575285"], ["id", 808]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"592"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$pD61HbReIQ8OI5uMe7nAR.g4sGniz8u4mZWZ8wA/14Gvhh1DcbcGG"], ["created_at", "2018-12-02 22:42:33.114825"], ["updated_at", "2018-12-02 22:42:33.114825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:33.122091"], ["updated_at", "2018-12-02 22:42:33.122091"], ["tipo_sala", "palestras"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:33 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:33.132852"], ["last_sign_in_at", "2018-12-02 22:42:33.132852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:33.133916"], ["id", 809]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"593"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$N2GLxdgz1UnZywi2A3es1uPIQCRjhlNHoDIn9AKkLW5eeKCvcf3Q2"], ["created_at", "2018-12-02 22:42:33.632539"], ["updated_at", "2018-12-02 22:42:33.632539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:33.636645"], ["updated_at", "2018-12-02 22:42:33.636645"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:33 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:33.642502"], ["last_sign_in_at", "2018-12-02 22:42:33.642502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:33.643841"], ["id", 810]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"594", "user_id"=>"810"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:34 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"594", "user_id"=>"810"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (2.9ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$1i/WL9KM47JWenZtir636OnTLpG9c57YRBLLpHz8BMuTI/dVo6.CO"], ["created_at", "2018-12-02 22:42:34.848276"], ["updated_at", "2018-12-02 22:42:34.848276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:34.855981"], ["updated_at", "2018-12-02 22:42:34.855981"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:34 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:34.875870"], ["last_sign_in_at", "2018-12-02 22:42:34.875870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:34.879057"], ["id", 811]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"595", "user_id"=>"811"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:35 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"595", "user_id"=>"811"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 595], ["user_id", 811], ["status", 2], ["LIMIT", 1]]
[1m[35m (2.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$7lVu/OJq.jmr4wr7J06IYOEaEHGZToT9hKIxN5n1m6/qKITnoLfU."], ["created_at", "2018-12-02 22:42:36.335553"], ["updated_at", "2018-12-02 22:42:36.335553"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:36.340252"], ["updated_at", "2018-12-02 22:42:36.340252"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:36 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:36.346816"], ["last_sign_in_at", "2018-12-02 22:42:36.346816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:36.347889"], ["id", 812]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"596", "user_id"=>"812"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:36 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"596", "user_id"=>"812"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 596], ["user_id", 812], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vXnzjGuwWwhjglrrZGRiNebmDFXSjn6CtVYXmtOSVZyKH8LxhmiPy"], ["created_at", "2018-12-02 22:42:37.173604"], ["updated_at", "2018-12-02 22:42:37.173604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:37.178177"], ["updated_at", "2018-12-02 22:42:37.178177"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:37 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:37.183460"], ["last_sign_in_at", "2018-12-02 22:42:37.183460"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:37.184679"], ["id", 813]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"597"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 597], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.JzdZGPB9AsmdTJqOCM5/emLYXbIxrIDfYDhfw3dAs85r6TVTLie."], ["created_at", "2018-12-02 22:42:37.684136"], ["updated_at", "2018-12-02 22:42:37.684136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:37.688505"], ["updated_at", "2018-12-02 22:42:37.688505"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:42:37 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:37.694060"], ["last_sign_in_at", "2018-12-02 22:42:37.694060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:37.695184"], ["id", 814]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"598"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$gsMFbAYnwgv8m1Ws.dZ2/eCzwrGMS0Ek3kgQMUc/zZ8p1HtK9hE3m"], ["created_at", "2018-12-02 22:42:38.190086"], ["updated_at", "2018-12-02 22:42:38.190086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:38.196285"], ["updated_at", "2018-12-02 22:42:38.196285"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 599], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 815], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 815], ["room_id", 599], ["created_at", "2018-12-02 22:42:38.240140"], ["updated_at", "2018-12-02 22:42:38.240140"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/599” for 127.0.0.1 at 2018-12-02 20:42:38 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:38.245633"], ["last_sign_in_at", "2018-12-02 22:42:38.245633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:38.246730"], ["id", 815]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"599"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 599], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '599')[0m
Rendered appointments/show.html.erb within layouts/application (15.3ms)
Rendered layouts/_header-user.html.erb (7.3ms)
Completed 200 OK in 448ms (Views: 443.9ms | ActiveRecord: 1.3ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$atsbhbnPXLf1BeSdOleSfevQofYp2kvwemMT5hoNbcdmGQj8I37Sm"], ["created_at", "2018-12-02 22:42:38.868033"], ["updated_at", "2018-12-02 22:42:38.868033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:38.878826"], ["updated_at", "2018-12-02 22:42:38.878826"], ["tipo_sala", "palestras"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 600], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 816], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 816], ["room_id", 600], ["created_at", "2018-12-02 22:42:38.897558"], ["updated_at", "2018-12-02 22:42:38.897558"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 600], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 816], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 816], ["room_id", 600], ["created_at", "2018-12-02 22:42:38.910241"], ["updated_at", "2018-12-02 22:42:38.910241"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:42:38 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:38.917786"], ["last_sign_in_at", "2018-12-02 22:42:38.917786"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:38.920289"], ["id", 816]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 816]] Rendered appointments/my_appointments.html.erb within layouts/application (9.7ms) Rendered layouts/_header-user.html.erb (4.7ms)
Completed 200 OK in 137ms (Views: 117.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Fm8ptPcNmnrI1Yulahfd2uyzgFBZ/g7nqq7cmmR/jiuIo9vf1WE9C"], ["created_at", "2018-12-02 22:42:39.230352"], ["updated_at", "2018-12-02 22:42:39.230352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:39.235982"], ["updated_at", "2018-12-02 22:42:39.235982"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 601], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 817], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 817], ["room_id", 601], ["created_at", "2018-12-02 22:42:39.248452"], ["updated_at", "2018-12-02 22:42:39.248452"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 601], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 817], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 817], ["room_id", 601], ["created_at", "2018-12-02 22:42:39.258535"], ["updated_at", "2018-12-02 22:42:39.258535"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:42:39 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:39.264424"], ["last_sign_in_at", "2018-12-02 22:42:39.264424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:39.265473"], ["id", 817]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 817]] Rendered appointments/my_appointments.html.erb within layouts/application (7.8ms) Rendered layouts/_header-user.html.erb (4.5ms)
Completed 200 OK in 83ms (Views: 80.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$T7EU8AyDJ7bz7BnQKG.jmuGDXT00nBeuNSiU.XlV.WVG9ESzwH0B2"], ["created_at", "2018-12-02 22:42:39.526618"], ["updated_at", "2018-12-02 22:42:39.526618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:42:39.532400"], ["updated_at", "2018-12-02 22:42:39.532400"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 602], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 818], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 818], ["room_id", 602], ["created_at", "2018-12-02 22:42:39.541948"], ["updated_at", "2018-12-02 22:42:39.541948"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/196” for 127.0.0.1 at 2018-12-02 20:42:39 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:42:39.547542"], ["last_sign_in_at", "2018-12-02 22:42:39.547542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:42:39.548598"], ["id", 818]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"196"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.pg.VHal5w68mYv9dWKXlOUn.dTcwkQ/kA7mA4VxUCb3Qa8O2BB1a"], ["created_at", "2018-12-02 22:44:35.740420"], ["updated_at", "2018-12-02 22:44:35.740420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:35.768031"], ["updated_at", "2018-12-02 22:44:35.768031"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:35 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:35.799117"], ["last_sign_in_at", "2018-12-02 22:44:35.799117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:35.800276"], ["id", 819]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Ed4m3hyveAkQoFH./Pxdues1dC4kl2SGVgnraCjMQS.OtJDiSgprq"], ["created_at", "2018-12-02 22:44:36.327845"], ["updated_at", "2018-12-02 22:44:36.327845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:36.332146"], ["updated_at", "2018-12-02 22:44:36.332146"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:36 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:36.337468"], ["last_sign_in_at", "2018-12-02 22:44:36.337468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:36.338470"], ["id", 820]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vAGU3zhh4mHC.KF8PUQ5f.7GyMKmUI2I9jeOqbN9nBtnYLS9U4Ttq"], ["created_at", "2018-12-02 22:44:36.809202"], ["updated_at", "2018-12-02 22:44:36.809202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:36.813670"], ["updated_at", "2018-12-02 22:44:36.813670"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:36 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:36.819615"], ["last_sign_in_at", "2018-12-02 22:44:36.819615"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:36.820722"], ["id", 821]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"605", "user_id"=>"821"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:37 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"605", "user_id"=>"821"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$bTy5eAXpf3Rz.4r5FtVrR.CpCXdJMXOD5/wufojRzy5Q1ASmNOhXq"], ["created_at", "2018-12-02 22:44:37.604788"], ["updated_at", "2018-12-02 22:44:37.604788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:37.609132"], ["updated_at", "2018-12-02 22:44:37.609132"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:37 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:37.615663"], ["last_sign_in_at", "2018-12-02 22:44:37.615663"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:37.616769"], ["id", 822]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"606", "user_id"=>"822"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:38 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"606", "user_id"=>"822"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 606], ["user_id", 822], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sp/hpwQhbIhHClaVNGhW0uvEOBzXKUcseyxDpLdRgNxxadsq2XHvC"], ["created_at", "2018-12-02 22:44:38.495637"], ["updated_at", "2018-12-02 22:44:38.495637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:38.499789"], ["updated_at", "2018-12-02 22:44:38.499789"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:38 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:38.506059"], ["last_sign_in_at", "2018-12-02 22:44:38.506059"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:38.507179"], ["id", 823]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"607", "user_id"=>"823"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:38 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"607", "user_id"=>"823"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 607], ["user_id", 823], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QsHWyDGKYuLfiP7AtaY9guBvn4tIHkMtEYb3/o8n9lbpJeccP9xmK"], ["created_at", "2018-12-02 22:44:39.297638"], ["updated_at", "2018-12-02 22:44:39.297638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:39.301950"], ["updated_at", "2018-12-02 22:44:39.301950"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:39 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:39.307376"], ["last_sign_in_at", "2018-12-02 22:44:39.307376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:39.308387"], ["id", 824]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"608"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 608], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dDEQjHK2S9DxjE3yKBHzcOdLOBFlX/ywhfQS0jtdL/BiK/ORMhtoC"], ["created_at", "2018-12-02 22:44:39.790653"], ["updated_at", "2018-12-02 22:44:39.790653"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:39.795003"], ["updated_at", "2018-12-02 22:44:39.795003"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:44:39 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:39.800296"], ["last_sign_in_at", "2018-12-02 22:44:39.800296"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:39.801459"], ["id", 825]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"609"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$/0DzV.EaIRSEpMhY1.B/3uNAeNndW6Ux8uQly.nW9DCmXKhKfja62"], ["created_at", "2018-12-02 22:44:40.282359"], ["updated_at", "2018-12-02 22:44:40.282359"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:40.286655"], ["updated_at", "2018-12-02 22:44:40.286655"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 610], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 826], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 826], ["room_id", 610], ["created_at", "2018-12-02 22:44:40.324569"], ["updated_at", "2018-12-02 22:44:40.324569"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/610” for 127.0.0.1 at 2018-12-02 20:44:40 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:40.329718"], ["last_sign_in_at", "2018-12-02 22:44:40.329718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:40.330860"], ["id", 826]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"610"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 610], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '610')[0m
Rendered appointments/show.html.erb within layouts/application (15.5ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 392ms (Views: 387.6ms | ActiveRecord: 1.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$c.p23Ggr1RCD/aW.vQCHOOBBtYQlJRtgQySh9g9EfZuCQsFTwwIU6"], ["created_at", "2018-12-02 22:44:40.891550"], ["updated_at", "2018-12-02 22:44:40.891550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:40.895455"], ["updated_at", "2018-12-02 22:44:40.895455"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 611], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 827], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 827], ["room_id", 611], ["created_at", "2018-12-02 22:44:40.903113"], ["updated_at", "2018-12-02 22:44:40.903113"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 611], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 827], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 827], ["room_id", 611], ["created_at", "2018-12-02 22:44:40.911463"], ["updated_at", "2018-12-02 22:44:40.911463"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:44:40 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:40.916189"], ["last_sign_in_at", "2018-12-02 22:44:40.916189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:40.917176"], ["id", 827]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 827]] Rendered appointments/my_appointments.html.erb within layouts/application (5.6ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 60ms (Views: 51.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QnjUYKfXJeWaL2d8qmfr9utXy9udzO7RSxs4VGJmTLQ7SnjaXUEt."], ["created_at", "2018-12-02 22:44:41.144895"], ["updated_at", "2018-12-02 22:44:41.144895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:41.148948"], ["updated_at", "2018-12-02 22:44:41.148948"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 612], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 828], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 828], ["room_id", 612], ["created_at", "2018-12-02 22:44:41.160432"], ["updated_at", "2018-12-02 22:44:41.160432"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 612], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 828], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 828], ["room_id", 612], ["created_at", "2018-12-02 22:44:41.169757"], ["updated_at", "2018-12-02 22:44:41.169757"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:44:41 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:41.177168"], ["last_sign_in_at", "2018-12-02 22:44:41.177168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:41.178604"], ["id", 828]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 828]] Rendered appointments/my_appointments.html.erb within layouts/application (4.7ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 54ms (Views: 52.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$57j0zG/KgROIcpCHEA8vHubVPkt1NP8BYPxxb73I2WOHAhxDZs7GG"], ["created_at", "2018-12-02 22:44:41.403615"], ["updated_at", "2018-12-02 22:44:41.403615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:44:41.407837"], ["updated_at", "2018-12-02 22:44:41.407837"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 613], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 829], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 829], ["room_id", 613], ["created_at", "2018-12-02 22:44:41.415894"], ["updated_at", "2018-12-02 22:44:41.415894"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/202” for 127.0.0.1 at 2018-12-02 20:44:41 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:44:41.420699"], ["last_sign_in_at", "2018-12-02 22:44:41.420699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:44:41.422040"], ["id", 829]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"202"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$MH0VAndHvUOse6NCedNi3eFTy3Fbi.5Yd1xyqmuK9zg2GGb9V8uGe"], ["created_at", "2018-12-02 22:49:43.378033"], ["updated_at", "2018-12-02 22:49:43.378033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:43.409255"], ["updated_at", "2018-12-02 22:49:43.409255"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:43 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:43.438647"], ["last_sign_in_at", "2018-12-02 22:49:43.438647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:43.439813"], ["id", 830]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", nil], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$bhwl349SvjQG8FwtTYDFn.MIK.qP40UM7hyCl5xxM7CYg/qXkEGcW"], ["created_at", "2018-12-02 22:49:43.961017"], ["updated_at", "2018-12-02 22:49:43.961017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:43.965369"], ["updated_at", "2018-12-02 22:49:43.965369"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:43.970640"], ["last_sign_in_at", "2018-12-02 22:49:43.970640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:43.971717"], ["id", 831]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$zHx/z9vDo0t3jh393OoFYegVsfgRIT3KOBlxp5J42c/Yz4HFrPqnm"], ["created_at", "2018-12-02 22:49:44.470408"], ["updated_at", "2018-12-02 22:49:44.470408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:44.474822"], ["updated_at", "2018-12-02 22:49:44.474822"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:44 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:44.481585"], ["last_sign_in_at", "2018-12-02 22:49:44.481585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:44.482862"], ["id", 832]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"616", "user_id"=>"832"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:44 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"616", "user_id"=>"832"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$6TSStHUBGENLC3AjTQ8oOum8YDn.LzW6o1uoysEjYOxMMopkcZwvK"], ["created_at", "2018-12-02 22:49:45.277547"], ["updated_at", "2018-12-02 22:49:45.277547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:45.282061"], ["updated_at", "2018-12-02 22:49:45.282061"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:45.289469"], ["last_sign_in_at", "2018-12-02 22:49:45.289469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:45.290603"], ["id", 833]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"617", "user_id"=>"833"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:45 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"617", "user_id"=>"833"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 617], ["user_id", 833], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$H543PgfNFeK8I48xiTbQXO5X67WIF6EmDeAy3aoQifVXmyzN6wKX2"], ["created_at", "2018-12-02 22:49:46.176973"], ["updated_at", "2018-12-02 22:49:46.176973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:46.181571"], ["updated_at", "2018-12-02 22:49:46.181571"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:46 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:46.190145"], ["last_sign_in_at", "2018-12-02 22:49:46.190145"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:46.191226"], ["id", 834]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"618", "user_id"=>"834"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:46 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"618", "user_id"=>"834"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 618], ["user_id", 834], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$rsrBaasIbf3k0axbfFjps.Qm315Q6aGOy64HIw3CK.EGz0E8xL9Aa"], ["created_at", "2018-12-02 22:49:46.998147"], ["updated_at", "2018-12-02 22:49:46.998147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:47.002401"], ["updated_at", "2018-12-02 22:49:47.002401"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:47 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:47.007923"], ["last_sign_in_at", "2018-12-02 22:49:47.007923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:47.009079"], ["id", 835]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"619"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 619], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$fRZ77XadVyQQnqMaI7Bv.ORY.8bORCEpxAl0FNH0UFpPNxGnmn..u"], ["created_at", "2018-12-02 22:49:47.494076"], ["updated_at", "2018-12-02 22:49:47.494076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:47.498527"], ["updated_at", "2018-12-02 22:49:47.498527"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:49:47 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:47.504730"], ["last_sign_in_at", "2018-12-02 22:49:47.504730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:47.505853"], ["id", 836]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"620"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CjM4hqHukBbSnbEJ83F5ou84/yU/MVCNSsKd836ZFy.RRk1pubVi2"], ["created_at", "2018-12-02 22:49:47.999582"], ["updated_at", "2018-12-02 22:49:47.999582"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:48.003950"], ["updated_at", "2018-12-02 22:49:48.003950"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 621], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 837], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 837], ["room_id", 621], ["created_at", "2018-12-02 22:49:48.040924"], ["updated_at", "2018-12-02 22:49:48.040924"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/621” for 127.0.0.1 at 2018-12-02 20:49:48 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:48.047080"], ["last_sign_in_at", "2018-12-02 22:49:48.047080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:48.048172"], ["id", 837]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"621"}
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 621], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '621')[0m
Rendered appointments/show.html.erb within layouts/application (15.8ms)
Rendered layouts/_header-user.html.erb (5.7ms)
Completed 200 OK in 569ms (Views: 563.9ms | ActiveRecord: 1.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$056wzVVEEpCpdDc6528mQ.88aVZG09xcshZyd50Un72jerdjGL156"], ["created_at", "2018-12-02 22:49:48.810241"], ["updated_at", "2018-12-02 22:49:48.810241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:48.818965"], ["updated_at", "2018-12-02 22:49:48.818965"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 622], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 838], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 838], ["room_id", 622], ["created_at", "2018-12-02 22:49:48.833497"], ["updated_at", "2018-12-02 22:49:48.833497"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 622], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 838], ["LIMIT", 1]]
[1m[35mSQL (5.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 838], ["room_id", 622], ["created_at", "2018-12-02 22:49:48.850934"], ["updated_at", "2018-12-02 22:49:48.850934"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:49:48 -0200
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:48.863573"], ["last_sign_in_at", "2018-12-02 22:49:48.863573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:48.865743"], ["id", 838]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 838]] Rendered appointments/my_appointments.html.erb within layouts/application (11.9ms) Rendered layouts/_header-user.html.erb (6.3ms)
Completed 200 OK in 95ms (Views: 79.9ms | ActiveRecord: 0.5ms)
[1m[35m (1.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$NrqD26wmTfoRNWHxuGyyGOl0NkdTQdWa6JzF.sdPNoMwq/xzMdVwe"], ["created_at", "2018-12-02 22:49:49.173509"], ["updated_at", "2018-12-02 22:49:49.173509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:49.180395"], ["updated_at", "2018-12-02 22:49:49.180395"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 623], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 839], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 839], ["room_id", 623], ["created_at", "2018-12-02 22:49:49.195054"], ["updated_at", "2018-12-02 22:49:49.195054"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 623], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 839], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 839], ["room_id", 623], ["created_at", "2018-12-02 22:49:49.208055"], ["updated_at", "2018-12-02 22:49:49.208055"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:49:49 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:49.215467"], ["last_sign_in_at", "2018-12-02 22:49:49.215467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:49.217092"], ["id", 839]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 839]] Rendered appointments/my_appointments.html.erb within layouts/application (7.0ms) Rendered layouts/_header-user.html.erb (6.2ms)
Completed 200 OK in 94ms (Views: 91.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vjww/EmwcniBjvUG3WTIVOA2vMXeH6.b1Gl4Att2uLH0brAEFSpQK"], ["created_at", "2018-12-02 22:49:49.513106"], ["updated_at", "2018-12-02 22:49:49.513106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:49:49.521414"], ["updated_at", "2018-12-02 22:49:49.521414"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 624], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 840], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 840], ["room_id", 624], ["created_at", "2018-12-02 22:49:49.534574"], ["updated_at", "2018-12-02 22:49:49.534574"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/208” for 127.0.0.1 at 2018-12-02 20:49:49 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:49:49.544295"], ["last_sign_in_at", "2018-12-02 22:49:49.544295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:49:49.546137"], ["id", 840]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"208"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OMxt9R7CNgX6taW.hA9VaejPdGl5HvYbCSkZ3okKqKN89oP6zi2ji"], ["created_at", "2018-12-02 22:50:10.816530"], ["updated_at", "2018-12-02 22:50:10.816530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:10.842350"], ["updated_at", "2018-12-02 22:50:10.842350"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:10 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:10.875072"], ["last_sign_in_at", "2018-12-02 22:50:10.875072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:10.877091"], ["id", 841]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"625"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 625], ["LIMIT", 1]]
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$RuJAI25suZEcwvPlTxsiKe/dcvC1GtIbIL5Tzjf1KKAfJkrq6lDsC"], ["created_at", "2018-12-02 22:50:11.397574"], ["updated_at", "2018-12-02 22:50:11.397574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:11.402149"], ["updated_at", "2018-12-02 22:50:11.402149"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:11 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:11.408115"], ["last_sign_in_at", "2018-12-02 22:50:11.408115"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:11.409458"], ["id", 842]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"626"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$y/D62rkLFksXBNNvYPELbuwtaq4tLnMdLFqRmg3Wd9SCITSlHSIBu"], ["created_at", "2018-12-02 22:50:11.889164"], ["updated_at", "2018-12-02 22:50:11.889164"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:11.893273"], ["updated_at", "2018-12-02 22:50:11.893273"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:11 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:11.899369"], ["last_sign_in_at", "2018-12-02 22:50:11.899369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:11.900575"], ["id", 843]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"627", "user_id"=>"843"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:12 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"627", "user_id"=>"843"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$4q1sQn9MtN669NtFxr9juuaQn0PraV80/PYl6vt.jno5Fwypa5i3C"], ["created_at", "2018-12-02 22:50:12.697630"], ["updated_at", "2018-12-02 22:50:12.697630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:12.702193"], ["updated_at", "2018-12-02 22:50:12.702193"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:12 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:12.709158"], ["last_sign_in_at", "2018-12-02 22:50:12.709158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:12.710326"], ["id", 844]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"628", "user_id"=>"844"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:13 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"628", "user_id"=>"844"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 628], ["user_id", 844], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$nXen0aKzqpu2kLWWy/CVfO4b9IohXGbCYMkPvZoO.vkpNYyNEpSO2"], ["created_at", "2018-12-02 22:50:13.601477"], ["updated_at", "2018-12-02 22:50:13.601477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:13.605938"], ["updated_at", "2018-12-02 22:50:13.605938"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:13 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:13.612382"], ["last_sign_in_at", "2018-12-02 22:50:13.612382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:13.613528"], ["id", 845]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"629", "user_id"=>"845"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:13 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"629", "user_id"=>"845"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 629], ["user_id", 845], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CnB/tE/ITA/IGynSWKAYRugC47PqOxrvvXW8rDAISylOKIuJ90d8."], ["created_at", "2018-12-02 22:50:14.424190"], ["updated_at", "2018-12-02 22:50:14.424190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:14.428873"], ["updated_at", "2018-12-02 22:50:14.428873"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:14 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:14.434647"], ["last_sign_in_at", "2018-12-02 22:50:14.434647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:14.435762"], ["id", 846]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"630"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 630], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$DEF0rS3MY.C5mdAZX/9Z7uP9k3LpfKdqPuaQY0VOltIks/cChDBx2"], ["created_at", "2018-12-02 22:50:14.926794"], ["updated_at", "2018-12-02 22:50:14.926794"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:14.931061"], ["updated_at", "2018-12-02 22:50:14.931061"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:14 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:14.938255"], ["last_sign_in_at", "2018-12-02 22:50:14.938255"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:14.939492"], ["id", 847]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"631"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$2pO/gy311eFbmhwSYkv7sejlNLkxE5Hm/aUrrKiHBVJRwwpmibpiW"], ["created_at", "2018-12-02 22:50:15.423147"], ["updated_at", "2018-12-02 22:50:15.423147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:15.427349"], ["updated_at", "2018-12-02 22:50:15.427349"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 848], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 848], ["room_id", 632], ["created_at", "2018-12-02 22:50:15.472651"], ["updated_at", "2018-12-02 22:50:15.472651"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/632” for 127.0.0.1 at 2018-12-02 20:50:15 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:15.477609"], ["last_sign_in_at", "2018-12-02 22:50:15.477609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:15.478650"], ["id", 848]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"632"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 632], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '632')[0m
Rendered appointments/show.html.erb within layouts/application (14.8ms)
Rendered layouts/_header-user.html.erb (8.9ms)
Completed 200 OK in 443ms (Views: 438.3ms | ActiveRecord: 1.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$4V5YX59n8YSQIdqNmJviNecrhZnqtByVj58gxrbbLtOEUy4t/Pct2"], ["created_at", "2018-12-02 22:50:16.096195"], ["updated_at", "2018-12-02 22:50:16.096195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:16.103215"], ["updated_at", "2018-12-02 22:50:16.103215"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 633], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 849], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 849], ["room_id", 633], ["created_at", "2018-12-02 22:50:16.116592"], ["updated_at", "2018-12-02 22:50:16.116592"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 633], ["LIMIT", 1]]
[1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 849], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 849], ["room_id", 633], ["created_at", "2018-12-02 22:50:16.133432"], ["updated_at", "2018-12-02 22:50:16.133432"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:50:16 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:16.142253"], ["last_sign_in_at", "2018-12-02 22:50:16.142253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:16.143563"], ["id", 849]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 849]] Rendered appointments/my_appointments.html.erb within layouts/application (9.3ms) Rendered layouts/_header-user.html.erb (4.7ms)
Completed 200 OK in 136ms (Views: 114.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$yVDPIAoCdTmZtyXvLFJ4A.wnHW9T1/sU0b1cA5yMyTF1EjwElbE1i"], ["created_at", "2018-12-02 22:50:16.457279"], ["updated_at", "2018-12-02 22:50:16.457279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:16.462212"], ["updated_at", "2018-12-02 22:50:16.462212"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 634], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 850], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 850], ["room_id", 634], ["created_at", "2018-12-02 22:50:16.473761"], ["updated_at", "2018-12-02 22:50:16.473761"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 634], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 850], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 850], ["room_id", 634], ["created_at", "2018-12-02 22:50:16.484769"], ["updated_at", "2018-12-02 22:50:16.484769"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:50:16 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:16.492135"], ["last_sign_in_at", "2018-12-02 22:50:16.492135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:16.493347"], ["id", 850]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 850]] Rendered appointments/my_appointments.html.erb within layouts/application (7.4ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 76ms (Views: 73.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$kek9kOQ.EYgzy4aMnEMly.h6FA6aU1FiUqaG1A6ifVyLHI3htwiXK"], ["created_at", "2018-12-02 22:50:16.743357"], ["updated_at", "2018-12-02 22:50:16.743357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:16.747887"], ["updated_at", "2018-12-02 22:50:16.747887"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 635], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 851], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 851], ["room_id", 635], ["created_at", "2018-12-02 22:50:16.758992"], ["updated_at", "2018-12-02 22:50:16.758992"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/214” for 127.0.0.1 at 2018-12-02 20:50:16 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:16.764762"], ["last_sign_in_at", "2018-12-02 22:50:16.764762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:16.765945"], ["id", 851]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"214"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$3fhyYaGlQfw0Zkn21lhr6.bTmVtbsYDRq0f.Qzc2P5qmDIuG9UMCy"], ["created_at", "2018-12-02 22:50:48.150399"], ["updated_at", "2018-12-02 22:50:48.150399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:48.179910"], ["updated_at", "2018-12-02 22:50:48.179910"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:48 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:48.210511"], ["last_sign_in_at", "2018-12-02 22:50:48.210511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:48.211892"], ["id", 852]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"636"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 636], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$yFtKecju0ObqP9F.9oPTqONM8P1FhMYC4NVZYulmQEZ3smvEiIFey"], ["created_at", "2018-12-02 22:50:48.735979"], ["updated_at", "2018-12-02 22:50:48.735979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:48.740606"], ["updated_at", "2018-12-02 22:50:48.740606"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:48 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:48.746437"], ["last_sign_in_at", "2018-12-02 22:50:48.746437"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:48.747630"], ["id", 853]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"637"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QUu.A/ROUisiNcv.gKTKeOJoVqNMY4remqeDX7tkNQsJ8EtlPB4oW"], ["created_at", "2018-12-02 22:50:49.219025"], ["updated_at", "2018-12-02 22:50:49.219025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:49.223347"], ["updated_at", "2018-12-02 22:50:49.223347"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:49 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:49.229802"], ["last_sign_in_at", "2018-12-02 22:50:49.229802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:49.231093"], ["id", 854]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"638", "user_id"=>"854"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:49 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"638", "user_id"=>"854"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ynu9iAxO7WMa5onpC6Uhi./oW3pzC4Hy77wdWnYDccvxR/JYR7Qbu"], ["created_at", "2018-12-02 22:50:50.014888"], ["updated_at", "2018-12-02 22:50:50.014888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:50.019331"], ["updated_at", "2018-12-02 22:50:50.019331"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:50 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:50.025648"], ["last_sign_in_at", "2018-12-02 22:50:50.025648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:50.026953"], ["id", 855]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"639", "user_id"=>"855"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:50 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"639", "user_id"=>"855"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 639], ["user_id", 855], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.ZvaGZUPraxMNPnjmd1KdeUwX9kYDDLOOVgmYzsN0s2jPxaxT4Cm2"], ["created_at", "2018-12-02 22:50:50.818426"], ["updated_at", "2018-12-02 22:50:50.818426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:50.822789"], ["updated_at", "2018-12-02 22:50:50.822789"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:50 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:50.829415"], ["last_sign_in_at", "2018-12-02 22:50:50.829415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:50.830499"], ["id", 856]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"640", "user_id"=>"856"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:51 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"640", "user_id"=>"856"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 640], ["user_id", 856], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$rR34bi0fZZnSpZtZ3X5HI.AJR1XSysp/XLoYO0gY6IzIo.rgl/gou"], ["created_at", "2018-12-02 22:50:51.700357"], ["updated_at", "2018-12-02 22:50:51.700357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:51.704381"], ["updated_at", "2018-12-02 22:50:51.704381"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:51 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:51.709601"], ["last_sign_in_at", "2018-12-02 22:50:51.709601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:51.710744"], ["id", 857]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"641"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 641], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$zQyjW2yWGuccPPqfEOKZeOedmOP1.JQ7DoTfP8BsZaOYj9qQgBlBu"], ["created_at", "2018-12-02 22:50:52.189954"], ["updated_at", "2018-12-02 22:50:52.189954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:52.193970"], ["updated_at", "2018-12-02 22:50:52.193970"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:50:52 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:52.199066"], ["last_sign_in_at", "2018-12-02 22:50:52.199066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:52.200125"], ["id", 858]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"642"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$NEQW3pT9kUD/7mMFXcsPZOo9IIT54CL4jcc1FbKmUbtyUx8kwGfCS"], ["created_at", "2018-12-02 22:50:52.679326"], ["updated_at", "2018-12-02 22:50:52.679326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:52.683134"], ["updated_at", "2018-12-02 22:50:52.683134"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 643], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 859], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 859], ["room_id", 643], ["created_at", "2018-12-02 22:50:52.722197"], ["updated_at", "2018-12-02 22:50:52.722197"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/643” for 127.0.0.1 at 2018-12-02 20:50:52 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:52.727685"], ["last_sign_in_at", "2018-12-02 22:50:52.727685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:52.728836"], ["id", 859]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"643"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 643], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '643')[0m
Rendered appointments/show.html.erb within layouts/application (15.0ms)
Rendered layouts/_header-user.html.erb (15.3ms)
Completed 200 OK in 464ms (Views: 454.4ms | ActiveRecord: 1.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$/PzZUQVNoGd/60w1w7.61uTDlHk9IXRUUU1qcFzzE/HTkU4CWfvg6"], ["created_at", "2018-12-02 22:50:53.365745"], ["updated_at", "2018-12-02 22:50:53.365745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:53.370932"], ["updated_at", "2018-12-02 22:50:53.370932"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 644], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 860], ["room_id", 644], ["created_at", "2018-12-02 22:50:53.382897"], ["updated_at", "2018-12-02 22:50:53.382897"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 644], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 860], ["room_id", 644], ["created_at", "2018-12-02 22:50:53.396166"], ["updated_at", "2018-12-02 22:50:53.396166"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:50:53 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:53.404757"], ["last_sign_in_at", "2018-12-02 22:50:53.404757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:53.405986"], ["id", 860]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 860]] Rendered appointments/my_appointments.html.erb within layouts/application (10.0ms) Rendered layouts/_header-user.html.erb (4.3ms)
Completed 200 OK in 126ms (Views: 102.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$xg7r6Q6jGN8d15m97cZs5uWXat2qaDUV.a4QWb.G4XEFXKKf6f1tG"], ["created_at", "2018-12-02 22:50:53.704336"], ["updated_at", "2018-12-02 22:50:53.704336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:53.709414"], ["updated_at", "2018-12-02 22:50:53.709414"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 645], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 861], ["room_id", 645], ["created_at", "2018-12-02 22:50:53.721076"], ["updated_at", "2018-12-02 22:50:53.721076"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 645], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 861], ["room_id", 645], ["created_at", "2018-12-02 22:50:53.731657"], ["updated_at", "2018-12-02 22:50:53.731657"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:50:53 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:53.737017"], ["last_sign_in_at", "2018-12-02 22:50:53.737017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:53.738397"], ["id", 861]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 861]] Rendered appointments/my_appointments.html.erb within layouts/application (5.2ms) Rendered layouts/_header-user.html.erb (4.2ms)
Completed 200 OK in 71ms (Views: 68.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sCUyqbogt0SlKgwU1w6aaOCqAheqOiiFSrEPxWrhmqB9C5nT5a0eK"], ["created_at", "2018-12-02 22:50:53.984157"], ["updated_at", "2018-12-02 22:50:53.984157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:50:53.989342"], ["updated_at", "2018-12-02 22:50:53.989342"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 646], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 862], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 862], ["room_id", 646], ["created_at", "2018-12-02 22:50:53.998714"], ["updated_at", "2018-12-02 22:50:53.998714"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/220” for 127.0.0.1 at 2018-12-02 20:50:54 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:50:54.004406"], ["last_sign_in_at", "2018-12-02 22:50:54.004406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:50:54.005447"], ["id", 862]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"220"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$K7aMScjD.1.6phXyDVv4KeHY21MEB56wK3V3XxrH3ZAYAqH0biSAW"], ["created_at", "2018-12-02 22:55:30.130407"], ["updated_at", "2018-12-02 22:55:30.130407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:30.158987"], ["updated_at", "2018-12-02 22:55:30.158987"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:30 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:30.189664"], ["last_sign_in_at", "2018-12-02 22:55:30.189664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:30.191041"], ["id", 863]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"647"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 647], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$MIjRM8aqvpiKwd2weXJuGO4eR.3tWk1iIUqTwu8Be70UKzwWar0Fe"], ["created_at", "2018-12-02 22:55:30.731403"], ["updated_at", "2018-12-02 22:55:30.731403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:30.735790"], ["updated_at", "2018-12-02 22:55:30.735790"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:30 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:30.742192"], ["last_sign_in_at", "2018-12-02 22:55:30.742192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:30.743380"], ["id", 864]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"648"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jjLyxUwKyJxVh9iX.Dvpw.9sfzTfY1JA2DN.fFFSC4fQZgB5do1Na"], ["created_at", "2018-12-02 22:55:31.228147"], ["updated_at", "2018-12-02 22:55:31.228147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:31.232774"], ["updated_at", "2018-12-02 22:55:31.232774"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:31 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:31.239511"], ["last_sign_in_at", "2018-12-02 22:55:31.239511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:31.240722"], ["id", 865]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"649", "user_id"=>"865"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:31 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"649", "user_id"=>"865"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$mWexPZd1f.2jGQupXWXx6ObBK1ZLtVbE60bW68RbMItJmp78w05wm"], ["created_at", "2018-12-02 22:55:32.037738"], ["updated_at", "2018-12-02 22:55:32.037738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:32.042293"], ["updated_at", "2018-12-02 22:55:32.042293"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:32.048991"], ["last_sign_in_at", "2018-12-02 22:55:32.048991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:32.050202"], ["id", 866]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"650", "user_id"=>"866"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:32 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"650", "user_id"=>"866"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 650], ["user_id", 866], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$rxnpG8ZIow0FXWn/QEzVHeF9MrnoiPZCURa2KwxsLCHSUADbGtxjO"], ["created_at", "2018-12-02 22:55:32.952629"], ["updated_at", "2018-12-02 22:55:32.952629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:32.959795"], ["updated_at", "2018-12-02 22:55:32.959795"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:32.967576"], ["last_sign_in_at", "2018-12-02 22:55:32.967576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:32.968679"], ["id", 867]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"651", "user_id"=>"867"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:33 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"651", "user_id"=>"867"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 651], ["user_id", 867], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$l/Ve8ELlr.XZT/x737M9yOw8KHniPp0fIKiMK9638g0S9O8uoZOEO"], ["created_at", "2018-12-02 22:55:33.804234"], ["updated_at", "2018-12-02 22:55:33.804234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:33.808837"], ["updated_at", "2018-12-02 22:55:33.808837"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:33 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:33.815092"], ["last_sign_in_at", "2018-12-02 22:55:33.815092"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:33.816220"], ["id", 868]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"652"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 652], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$UbYuXrm8fbggK0.BKU9TzOqjWNjtRXy0HHvl3RpMK4vAZFvZeMk/e"], ["created_at", "2018-12-02 22:55:34.322841"], ["updated_at", "2018-12-02 22:55:34.322841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:34.329781"], ["updated_at", "2018-12-02 22:55:34.329781"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:34 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:34.340240"], ["last_sign_in_at", "2018-12-02 22:55:34.340240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:34.341427"], ["id", 869]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"653"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$2/D1bHHxIC424AF4etQk.O4Ym8XzPPInAL7VuixOYOblAoH4X6czG"], ["created_at", "2018-12-02 22:55:34.873320"], ["updated_at", "2018-12-02 22:55:34.873320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:34.879087"], ["updated_at", "2018-12-02 22:55:34.879087"], ["tipo_sala", "palestras"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 654], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 870], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 870], ["room_id", 654], ["created_at", "2018-12-02 22:55:34.941215"], ["updated_at", "2018-12-02 22:55:34.941215"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/654” for 127.0.0.1 at 2018-12-02 20:55:34 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:34.950121"], ["last_sign_in_at", "2018-12-02 22:55:34.950121"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:34.952033"], ["id", 870]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"654"}
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 654], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (1.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '654')[0m
Rendered appointments/show.html.erb within layouts/application (23.3ms)
Rendered layouts/_header-user.html.erb (24.6ms)
Completed 200 OK in 831ms (Views: 823.0ms | ActiveRecord: 2.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$9Bros.7pdB2/kiUpT0gckuGPHeyGGQaLDD0Ee6oWSjkuRNXmXHnPy"], ["created_at", "2018-12-02 22:55:35.983834"], ["updated_at", "2018-12-02 22:55:35.983834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:35.993294"], ["updated_at", "2018-12-02 22:55:35.993294"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 655], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 871], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 871], ["room_id", 655], ["created_at", "2018-12-02 22:55:36.010562"], ["updated_at", "2018-12-02 22:55:36.010562"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 655], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 871], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 871], ["room_id", 655], ["created_at", "2018-12-02 22:55:36.028974"], ["updated_at", "2018-12-02 22:55:36.028974"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:55:36 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:36.039363"], ["last_sign_in_at", "2018-12-02 22:55:36.039363"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:36.041028"], ["id", 871]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (2.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 871]] Rendered appointments/my_appointments.html.erb within layouts/application (15.5ms) Rendered layouts/_header-user.html.erb (8.6ms)
Completed 200 OK in 229ms (Views: 194.4ms | ActiveRecord: 2.7ms)
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$mBQlXoCC5q.5s/6Bf7jRu.zRw46Y82IO4z/WDyJ1J8LHqcX9UQgku"], ["created_at", "2018-12-02 22:55:36.483116"], ["updated_at", "2018-12-02 22:55:36.483116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:36.492266"], ["updated_at", "2018-12-02 22:55:36.492266"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 656], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 872], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 872], ["room_id", 656], ["created_at", "2018-12-02 22:55:36.511005"], ["updated_at", "2018-12-02 22:55:36.511005"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 656], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 872], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 872], ["room_id", 656], ["created_at", "2018-12-02 22:55:36.527554"], ["updated_at", "2018-12-02 22:55:36.527554"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:55:36 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:36.537323"], ["last_sign_in_at", "2018-12-02 22:55:36.537323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:36.539446"], ["id", 872]] [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 872]] Rendered appointments/my_appointments.html.erb within layouts/application (9.5ms) Rendered layouts/_header-user.html.erb (7.4ms)
Completed 200 OK in 145ms (Views: 142.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Ui/q2itrFP3ibJwQOrD5j.T5FUZHfFz3WEY7fMR0mj39r3miZNgv."], ["created_at", "2018-12-02 22:55:36.883820"], ["updated_at", "2018-12-02 22:55:36.883820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:36.891125"], ["updated_at", "2018-12-02 22:55:36.891125"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 657], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 873], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 873], ["room_id", 657], ["created_at", "2018-12-02 22:55:36.906162"], ["updated_at", "2018-12-02 22:55:36.906162"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/226” for 127.0.0.1 at 2018-12-02 20:55:36 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:36.914718"], ["last_sign_in_at", "2018-12-02 22:55:36.914718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:36.916476"], ["id", 873]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"226"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (1.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jbqFxVr6IDiv83L6YH.ZOuYayMdH45GyRxwZWLN0Qrm11VUYtmeka"], ["created_at", "2018-12-02 22:55:56.390854"], ["updated_at", "2018-12-02 22:55:56.390854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:56.424814"], ["updated_at", "2018-12-02 22:55:56.424814"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:56 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:56.457476"], ["last_sign_in_at", "2018-12-02 22:55:56.457476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:56.459174"], ["id", 874]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"658"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 658], ["LIMIT", 1]]
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dHRoUQGoUViOyaqRQdkO0emojcjN1KQ5OIGeRjNtXB8ObzBvLIfpO"], ["created_at", "2018-12-02 22:55:57.190257"], ["updated_at", "2018-12-02 22:55:57.190257"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:57.194973"], ["updated_at", "2018-12-02 22:55:57.194973"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:57 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:57.201321"], ["last_sign_in_at", "2018-12-02 22:55:57.201321"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:57.202577"], ["id", 875]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"659"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$uT5NI4alOOmto/GZKvpDNuzbAQt.B8jhLdBb.U1pGkyO26DoE8OTW"], ["created_at", "2018-12-02 22:55:57.685095"], ["updated_at", "2018-12-02 22:55:57.685095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:57.689405"], ["updated_at", "2018-12-02 22:55:57.689405"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:57 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:57.695463"], ["last_sign_in_at", "2018-12-02 22:55:57.695463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:57.696616"], ["id", 876]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"660", "user_id"=>"876"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:58 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"660", "user_id"=>"876"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$uOu7BrgP0Xrmkk6lxGQ9me2lWelEpi6BHIWGrkgbGEdtgVj0TAdUy"], ["created_at", "2018-12-02 22:55:58.474427"], ["updated_at", "2018-12-02 22:55:58.474427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:58.478504"], ["updated_at", "2018-12-02 22:55:58.478504"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:58 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:58.484102"], ["last_sign_in_at", "2018-12-02 22:55:58.484102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:58.485079"], ["id", 877]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"661", "user_id"=>"877"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:58 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"661", "user_id"=>"877"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 661], ["user_id", 877], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$tbwjwNRYBPKTxQTFWgTWGudZYY1o3AWgi7yAQRYZTUD9n7WER9pe2"], ["created_at", "2018-12-02 22:55:59.278478"], ["updated_at", "2018-12-02 22:55:59.278478"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:55:59.282824"], ["updated_at", "2018-12-02 22:55:59.282824"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:59 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:55:59.288668"], ["last_sign_in_at", "2018-12-02 22:55:59.288668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:55:59.289745"], ["id", 878]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"662", "user_id"=>"878"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:55:59 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"662", "user_id"=>"878"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 662], ["user_id", 878], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$2KFYpsP2Z30bExB08QHJHuOyf7XrUMh10lajIG.DaztPCi4uyXr4."], ["created_at", "2018-12-02 22:56:00.160512"], ["updated_at", "2018-12-02 22:56:00.160512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:00.164670"], ["updated_at", "2018-12-02 22:56:00.164670"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:00 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:00.170502"], ["last_sign_in_at", "2018-12-02 22:56:00.170502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:00.171676"], ["id", 879]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"663"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 663], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QFj1GN.kWbX1nCL7fXW1yODnFXwfH2mBOZJqRpEE3.94xZ4YEe/rq"], ["created_at", "2018-12-02 22:56:00.646869"], ["updated_at", "2018-12-02 22:56:00.646869"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:00.651223"], ["updated_at", "2018-12-02 22:56:00.651223"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:00 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:00.657127"], ["last_sign_in_at", "2018-12-02 22:56:00.657127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:00.658356"], ["id", 880]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"664"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OTk1NfDWuGqRZ34BeYJ6VeiL/GNDj3LJmve8nG59xeqt7DKeyEHKW"], ["created_at", "2018-12-02 22:56:01.136902"], ["updated_at", "2018-12-02 22:56:01.136902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:01.141142"], ["updated_at", "2018-12-02 22:56:01.141142"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 665], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 881], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 881], ["room_id", 665], ["created_at", "2018-12-02 22:56:01.180630"], ["updated_at", "2018-12-02 22:56:01.180630"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/665” for 127.0.0.1 at 2018-12-02 20:56:01 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:01.186037"], ["last_sign_in_at", "2018-12-02 22:56:01.186037"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:01.187231"], ["id", 881]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"665"}
[1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 665], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '665')[0m
Rendered appointments/show.html.erb within layouts/application (15.2ms)
Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 405ms (Views: 400.4ms | ActiveRecord: 1.7ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ooxieBJcYqUNehoDg.bz0.5NS.WRsw1J7ir34t6h0ORPeV.JxVuT6"], ["created_at", "2018-12-02 22:56:01.770284"], ["updated_at", "2018-12-02 22:56:01.770284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:01.775042"], ["updated_at", "2018-12-02 22:56:01.775042"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 666], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 882], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 882], ["room_id", 666], ["created_at", "2018-12-02 22:56:01.785108"], ["updated_at", "2018-12-02 22:56:01.785108"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 666], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 882], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 882], ["room_id", 666], ["created_at", "2018-12-02 22:56:01.794387"], ["updated_at", "2018-12-02 22:56:01.794387"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:56:01 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:01.799208"], ["last_sign_in_at", "2018-12-02 22:56:01.799208"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:01.800429"], ["id", 882]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 882]] Rendered appointments/my_appointments.html.erb within layouts/application (6.1ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 63ms (Views: 53.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$n3aZlnaZwDCn7BCgEp99j.LdbwrfuXYF1GwFR6dO9LsbphN0Fcc8."], ["created_at", "2018-12-02 22:56:02.032745"], ["updated_at", "2018-12-02 22:56:02.032745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:02.036954"], ["updated_at", "2018-12-02 22:56:02.036954"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 667], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 883], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 883], ["room_id", 667], ["created_at", "2018-12-02 22:56:02.045285"], ["updated_at", "2018-12-02 22:56:02.045285"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 667], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 883], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 883], ["room_id", 667], ["created_at", "2018-12-02 22:56:02.054295"], ["updated_at", "2018-12-02 22:56:02.054295"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:56:02 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:02.059162"], ["last_sign_in_at", "2018-12-02 22:56:02.059162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:02.060203"], ["id", 883]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 883]] Rendered appointments/my_appointments.html.erb within layouts/application (4.6ms) Rendered layouts/_header-user.html.erb (3.6ms)
Completed 200 OK in 54ms (Views: 52.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vVGCL5PAPrtjyg0wrBXxIuRQJzdTMQbk3MxYHPoiKwFhcGi955gqy"], ["created_at", "2018-12-02 22:56:02.285305"], ["updated_at", "2018-12-02 22:56:02.285305"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:02.289624"], ["updated_at", "2018-12-02 22:56:02.289624"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 668], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 884], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 884], ["room_id", 668], ["created_at", "2018-12-02 22:56:02.297749"], ["updated_at", "2018-12-02 22:56:02.297749"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/232” for 127.0.0.1 at 2018-12-02 20:56:02 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:02.303199"], ["last_sign_in_at", "2018-12-02 22:56:02.303199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:02.304284"], ["id", 884]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"232"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CeGmU7DqLw/itNJZo1Br5Oa73ZM0dEsbEXMyDWOtZroa9t.17/LGG"], ["created_at", "2018-12-02 22:56:40.757243"], ["updated_at", "2018-12-02 22:56:40.757243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:40.783871"], ["updated_at", "2018-12-02 22:56:40.783871"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:40 -0200
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:40.815316"], ["last_sign_in_at", "2018-12-02 22:56:40.815316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:40.816497"], ["id", 885]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"669"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 669], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$IFSrrK.e.wX6aM3Nm9noe.Y62T529r96jIKGgKyNJcbGRv.1nPPQK"], ["created_at", "2018-12-02 22:56:41.337175"], ["updated_at", "2018-12-02 22:56:41.337175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:41.343368"], ["updated_at", "2018-12-02 22:56:41.343368"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:41 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:41.350691"], ["last_sign_in_at", "2018-12-02 22:56:41.350691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:41.351891"], ["id", 886]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"670"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$3tthuhF9ckZQwNv7g4XnAOre78w.jE39JAnBuHz4qhpEAVG9fusTy"], ["created_at", "2018-12-02 22:56:41.827611"], ["updated_at", "2018-12-02 22:56:41.827611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:41.832713"], ["updated_at", "2018-12-02 22:56:41.832713"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:41 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:41.838984"], ["last_sign_in_at", "2018-12-02 22:56:41.838984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:41.840036"], ["id", 887]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"671", "user_id"=>"887"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:42 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"671", "user_id"=>"887"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$W.q1Z5zAxaSpGZkuCzkokuKJFqL462P.WHHGsYGEd4m1D3wm4Ir.i"], ["created_at", "2018-12-02 22:56:42.629996"], ["updated_at", "2018-12-02 22:56:42.629996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:42.634512"], ["updated_at", "2018-12-02 22:56:42.634512"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:42 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:42.640415"], ["last_sign_in_at", "2018-12-02 22:56:42.640415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:42.641590"], ["id", 888]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"672", "user_id"=>"888"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:42 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"672", "user_id"=>"888"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 672], ["user_id", 888], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$toR3CJd/LbaSh4cv2zl7v.haAbf2qTdEa/UUd/TdmrtkzVE9eCeGq"], ["created_at", "2018-12-02 22:56:43.429532"], ["updated_at", "2018-12-02 22:56:43.429532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:43.433925"], ["updated_at", "2018-12-02 22:56:43.433925"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:43.440420"], ["last_sign_in_at", "2018-12-02 22:56:43.440420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:43.441475"], ["id", 889]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"673", "user_id"=>"889"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:43 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"673", "user_id"=>"889"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 673], ["user_id", 889], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$AfB5eagMVibDaH/YQeFiyuq.Mm0sE297qURVwgyJQoCuHSaBQTURa"], ["created_at", "2018-12-02 22:56:44.306429"], ["updated_at", "2018-12-02 22:56:44.306429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:44.310478"], ["updated_at", "2018-12-02 22:56:44.310478"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:44 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:44.315756"], ["last_sign_in_at", "2018-12-02 22:56:44.315756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:44.316682"], ["id", 890]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"674"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 674], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$7lvTJBRr4QmGyysmA5ZTvepHabocsWfnKe.FUc93jLHHzmz9s444y"], ["created_at", "2018-12-02 22:56:44.794807"], ["updated_at", "2018-12-02 22:56:44.794807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:44.800087"], ["updated_at", "2018-12-02 22:56:44.800087"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:56:44 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:44.808614"], ["last_sign_in_at", "2018-12-02 22:56:44.808614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:44.810012"], ["id", 891]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"675"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sKdi63TLLmnG8Duos9cG0OhleNJ/y/LtratvHeoBXXBCaW.m9noz6"], ["created_at", "2018-12-02 22:56:45.293344"], ["updated_at", "2018-12-02 22:56:45.293344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:45.297606"], ["updated_at", "2018-12-02 22:56:45.297606"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 676], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 892], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 892], ["room_id", 676], ["created_at", "2018-12-02 22:56:45.337677"], ["updated_at", "2018-12-02 22:56:45.337677"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/676” for 127.0.0.1 at 2018-12-02 20:56:45 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:45.343625"], ["last_sign_in_at", "2018-12-02 22:56:45.343625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:45.344715"], ["id", 892]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"676"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 676], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '676')[0m
Rendered appointments/show.html.erb within layouts/application (15.1ms)
Rendered layouts/_header-user.html.erb (10.5ms)
Completed 200 OK in 441ms (Views: 436.4ms | ActiveRecord: 1.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Cora2g1TspqUvxyjXkkDL.hHLPBLjFYeezfO3lXJ8Kj19E0ZXTgrW"], ["created_at", "2018-12-02 22:56:45.959571"], ["updated_at", "2018-12-02 22:56:45.959571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:45.965227"], ["updated_at", "2018-12-02 22:56:45.965227"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 677], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 893], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 893], ["room_id", 677], ["created_at", "2018-12-02 22:56:45.979395"], ["updated_at", "2018-12-02 22:56:45.979395"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 677], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 893], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 893], ["room_id", 677], ["created_at", "2018-12-02 22:56:45.992340"], ["updated_at", "2018-12-02 22:56:45.992340"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:56:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:45.999827"], ["last_sign_in_at", "2018-12-02 22:56:45.999827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:46.002402"], ["id", 893]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 893]] Rendered appointments/my_appointments.html.erb within layouts/application (9.3ms) Rendered layouts/_header-user.html.erb (4.6ms)
Completed 200 OK in 133ms (Views: 113.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QKnt2ZIKG1AeWZTlOd1qs.8b0FoyhqVCD67ib0tsCs7sNcyqSQqmu"], ["created_at", "2018-12-02 22:56:46.305929"], ["updated_at", "2018-12-02 22:56:46.305929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:46.310336"], ["updated_at", "2018-12-02 22:56:46.310336"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 678], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 894], ["LIMIT", 1]]
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 894], ["room_id", 678], ["created_at", "2018-12-02 22:56:46.318896"], ["updated_at", "2018-12-02 22:56:46.318896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 678], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 894], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 894], ["room_id", 678], ["created_at", "2018-12-02 22:56:46.328751"], ["updated_at", "2018-12-02 22:56:46.328751"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:56:46 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:46.334198"], ["last_sign_in_at", "2018-12-02 22:56:46.334198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:46.335182"], ["id", 894]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 894]] Rendered appointments/my_appointments.html.erb within layouts/application (4.8ms) Rendered layouts/_header-user.html.erb (11.7ms)
Completed 200 OK in 78ms (Views: 76.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$10Dd6AIvl8GSWlSaBsqEzeMHgA5HqaVjdErhOtLGPkqquh2GipPSO"], ["created_at", "2018-12-02 22:56:46.581841"], ["updated_at", "2018-12-02 22:56:46.581841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:56:46.585946"], ["updated_at", "2018-12-02 22:56:46.585946"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 679], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 895], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 895], ["room_id", 679], ["created_at", "2018-12-02 22:56:46.596816"], ["updated_at", "2018-12-02 22:56:46.596816"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/238” for 127.0.0.1 at 2018-12-02 20:56:46 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:56:46.602583"], ["last_sign_in_at", "2018-12-02 22:56:46.602583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:56:46.603587"], ["id", 895]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"238"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$DZCYZANPw63SMkCKipqQzuadpbbl/Q71nHIPGq9TtCz8uDwDtrr4e"], ["created_at", "2018-12-02 22:57:21.872500"], ["updated_at", "2018-12-02 22:57:21.872500"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:21.899001"], ["updated_at", "2018-12-02 22:57:21.899001"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:21 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:21.930283"], ["last_sign_in_at", "2018-12-02 22:57:21.930283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:21.931490"], ["id", 896]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"680"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 680], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$wG/wE5ikcGtCXrPmqj3vmOKEqQVUBVY9WIKgJ7pmt04IbuofjFQiC"], ["created_at", "2018-12-02 22:57:22.451162"], ["updated_at", "2018-12-02 22:57:22.451162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:22.455561"], ["updated_at", "2018-12-02 22:57:22.455561"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:22 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:22.461129"], ["last_sign_in_at", "2018-12-02 22:57:22.461129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:22.462359"], ["id", 897]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"681"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$NLuqIIIBu8NRn5TSfn9ar.ImHKbGOfeLgng9VQdE/aDlgSal21IOy"], ["created_at", "2018-12-02 22:57:22.937429"], ["updated_at", "2018-12-02 22:57:22.937429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:22.941553"], ["updated_at", "2018-12-02 22:57:22.941553"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:22 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:22.947301"], ["last_sign_in_at", "2018-12-02 22:57:22.947301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:22.948286"], ["id", 898]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"682", "user_id"=>"898"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:23 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"682", "user_id"=>"898"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$tzjb0ebfhTu/mHSDDWsidOhGyt2SCZoHjTGq8fwmtLEMqD2X7yFNe"], ["created_at", "2018-12-02 22:57:23.724888"], ["updated_at", "2018-12-02 22:57:23.724888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:23.729500"], ["updated_at", "2018-12-02 22:57:23.729500"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:23.735895"], ["last_sign_in_at", "2018-12-02 22:57:23.735895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:23.737078"], ["id", 899]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"683", "user_id"=>"899"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:24 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"683", "user_id"=>"899"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 683], ["user_id", 899], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Tx1aIeDGhBVh2fRZV3jbte1vVHHwkq78IvsfF6pvwZkU/Dqzi0sTu"], ["created_at", "2018-12-02 22:57:24.531233"], ["updated_at", "2018-12-02 22:57:24.531233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:24.535696"], ["updated_at", "2018-12-02 22:57:24.535696"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:24 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:24.541771"], ["last_sign_in_at", "2018-12-02 22:57:24.541771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:24.543002"], ["id", 900]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"684", "user_id"=>"900"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:24 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"684", "user_id"=>"900"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 684], ["user_id", 900], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$tFxTzSSagz/VfG/Rvvf9rOvocFwH8LF9EeyhVhhpPufboLwE6xQSq"], ["created_at", "2018-12-02 22:57:25.416123"], ["updated_at", "2018-12-02 22:57:25.416123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:25.420878"], ["updated_at", "2018-12-02 22:57:25.420878"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:25.426827"], ["last_sign_in_at", "2018-12-02 22:57:25.426827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:25.427940"], ["id", 901]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"685"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 685], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$AVFLt0eMhrVDhcwLOZmyieIJKTjnJBvxQQ5Exom4pubPyz6IGmMc6"], ["created_at", "2018-12-02 22:57:25.905982"], ["updated_at", "2018-12-02 22:57:25.905982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:25.911335"], ["updated_at", "2018-12-02 22:57:25.911335"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:57:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:25.919788"], ["last_sign_in_at", "2018-12-02 22:57:25.919788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:25.921010"], ["id", 902]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"686"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$r35M4s7cG/J1o1HsOJCmnuQitdXFL7W4mGlGglsvze0DeDM1jL5gy"], ["created_at", "2018-12-02 22:57:26.400155"], ["updated_at", "2018-12-02 22:57:26.400155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:26.404371"], ["updated_at", "2018-12-02 22:57:26.404371"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 687], ["LIMIT", 1]]
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 903], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 903], ["room_id", 687], ["created_at", "2018-12-02 22:57:26.444299"], ["updated_at", "2018-12-02 22:57:26.444299"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/687” for 127.0.0.1 at 2018-12-02 20:57:26 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:26.449756"], ["last_sign_in_at", "2018-12-02 22:57:26.449756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:26.450845"], ["id", 903]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"687"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 687], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '687')[0m
Rendered appointments/show.html.erb within layouts/application (15.4ms)
Rendered layouts/_header-user.html.erb (10.6ms)
Completed 200 OK in 440ms (Views: 435.6ms | ActiveRecord: 1.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$yGbeNXC95oJrL.Cxc3W.m.Jl6RHyPJwF3tSudFiu3/ea3dIKYZANu"], ["created_at", "2018-12-02 22:57:27.065323"], ["updated_at", "2018-12-02 22:57:27.065323"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:27.077698"], ["updated_at", "2018-12-02 22:57:27.077698"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 688], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 904], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 904], ["room_id", 688], ["created_at", "2018-12-02 22:57:27.089241"], ["updated_at", "2018-12-02 22:57:27.089241"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 688], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 904], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 904], ["room_id", 688], ["created_at", "2018-12-02 22:57:27.100396"], ["updated_at", "2018-12-02 22:57:27.100396"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:57:27 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:27.107674"], ["last_sign_in_at", "2018-12-02 22:57:27.107674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:27.108796"], ["id", 904]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 904]] Rendered appointments/my_appointments.html.erb within layouts/application (10.1ms) Rendered layouts/_header-user.html.erb (3.9ms)
Completed 200 OK in 144ms (Views: 124.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$8bVn9MSOVts1l2djW/L5oOX24lhUQDhqn8/qqxHwbJkFDIj5zTwEG"], ["created_at", "2018-12-02 22:57:27.424768"], ["updated_at", "2018-12-02 22:57:27.424768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:27.429134"], ["updated_at", "2018-12-02 22:57:27.429134"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 689], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 905], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 905], ["room_id", 689], ["created_at", "2018-12-02 22:57:27.437514"], ["updated_at", "2018-12-02 22:57:27.437514"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 689], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 905], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 905], ["room_id", 689], ["created_at", "2018-12-02 22:57:27.447529"], ["updated_at", "2018-12-02 22:57:27.447529"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:57:27 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:27.453666"], ["last_sign_in_at", "2018-12-02 22:57:27.453666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:27.454845"], ["id", 905]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 905]] Rendered appointments/my_appointments.html.erb within layouts/application (4.4ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 53ms (Views: 51.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$6xDvvHq.Mj8P.WuPYdx8DuDnns/aqT1RHryT79hJz4SUBk.4xy59y"], ["created_at", "2018-12-02 22:57:27.678357"], ["updated_at", "2018-12-02 22:57:27.678357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:57:27.682554"], ["updated_at", "2018-12-02 22:57:27.682554"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 690], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 906], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 906], ["room_id", 690], ["created_at", "2018-12-02 22:57:27.690104"], ["updated_at", "2018-12-02 22:57:27.690104"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/244” for 127.0.0.1 at 2018-12-02 20:57:27 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:57:27.694736"], ["last_sign_in_at", "2018-12-02 22:57:27.694736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:57:27.695636"], ["id", 906]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"244"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$XQ8WQRMZpaol3lTF2/u6N.gc/rcTWn04i0KOqLbon0OdWLrH/LHo6"], ["created_at", "2018-12-02 22:58:59.784354"], ["updated_at", "2018-12-02 22:58:59.784354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:58:59.810924"], ["updated_at", "2018-12-02 22:58:59.810924"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:58:59 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:58:59.840838"], ["last_sign_in_at", "2018-12-02 22:58:59.840838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:58:59.842054"], ["id", 907]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"691"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 691], ["LIMIT", 1]]
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$uurGZBCgqTfE18SqB76/AuKEI9imbI3AVvD9FS5GTxQVY0Xwt6HDW"], ["created_at", "2018-12-02 22:59:00.368901"], ["updated_at", "2018-12-02 22:59:00.368901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:00.373347"], ["updated_at", "2018-12-02 22:59:00.373347"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:00 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:00.378944"], ["last_sign_in_at", "2018-12-02 22:59:00.378944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:00.380124"], ["id", 908]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"692"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Tfeof4y56vDKb.Jduk0kHO274XMoV2vIL0TzN7fAWxmmsA47/9IBG"], ["created_at", "2018-12-02 22:59:00.856153"], ["updated_at", "2018-12-02 22:59:00.856153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:00.860789"], ["updated_at", "2018-12-02 22:59:00.860789"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:00 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:00.867366"], ["last_sign_in_at", "2018-12-02 22:59:00.867366"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:00.868633"], ["id", 909]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"693", "user_id"=>"909"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:01 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"693", "user_id"=>"909"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$M4k5Q68SzP183wCMhYmzaedoFFchYzNB2rJ.nhMzNir.25Ki1yAVi"], ["created_at", "2018-12-02 22:59:01.653618"], ["updated_at", "2018-12-02 22:59:01.653618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:01.658320"], ["updated_at", "2018-12-02 22:59:01.658320"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:01 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:01.664913"], ["last_sign_in_at", "2018-12-02 22:59:01.664913"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:01.666109"], ["id", 910]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"694", "user_id"=>"910"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:02 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"694", "user_id"=>"910"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 694], ["user_id", 910], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dIT1dWAqJ9cNc51vJUgfgOkgXPoP0z/q25GE7K7FABm71JO5BNFXu"], ["created_at", "2018-12-02 22:59:02.569586"], ["updated_at", "2018-12-02 22:59:02.569586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:02.574773"], ["updated_at", "2018-12-02 22:59:02.574773"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:02 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:02.581068"], ["last_sign_in_at", "2018-12-02 22:59:02.581068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:02.582279"], ["id", 911]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"695", "user_id"=>"911"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:02 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"695", "user_id"=>"911"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 695], ["user_id", 911], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QMDQKe5rCuLb8uDmjkoYguUBS8/hVtyiiZCTrAun9UidNFbFSEemO"], ["created_at", "2018-12-02 22:59:03.403732"], ["updated_at", "2018-12-02 22:59:03.403732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:03.411309"], ["updated_at", "2018-12-02 22:59:03.411309"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:03 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:03.417944"], ["last_sign_in_at", "2018-12-02 22:59:03.417944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:03.419068"], ["id", 912]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"696"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 696], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$aYl1a1xJycD7dOErCckaS.oKVXKbF1/ROGN9KkUe1zoU4UVJ1gyde"], ["created_at", "2018-12-02 22:59:03.984408"], ["updated_at", "2018-12-02 22:59:03.984408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:03.992430"], ["updated_at", "2018-12-02 22:59:03.992430"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 20:59:03 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:04.001368"], ["last_sign_in_at", "2018-12-02 22:59:04.001368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:04.002908"], ["id", 913]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"697"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$T1ksXVh.8aFowVO1LiEQ6.EN12KH8IRFY8gxfGdXtT7ggmh9I2OsW"], ["created_at", "2018-12-02 22:59:04.734752"], ["updated_at", "2018-12-02 22:59:04.734752"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:04.742286"], ["updated_at", "2018-12-02 22:59:04.742286"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 914], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 914], ["room_id", 698], ["created_at", "2018-12-02 22:59:04.802137"], ["updated_at", "2018-12-02 22:59:04.802137"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/698” for 127.0.0.1 at 2018-12-02 20:59:04 -0200
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:04.810854"], ["last_sign_in_at", "2018-12-02 22:59:04.810854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:04.813207"], ["id", 914]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"698"}
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 698], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (1.2ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '698')[0m
Rendered appointments/show.html.erb within layouts/application (24.8ms)
Rendered layouts/_header-user.html.erb (10.3ms)
Completed 200 OK in 922ms (Views: 915.1ms | ActiveRecord: 1.9ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (5.7ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$rzT3XzvP18E7Ud.8uYRQ6O/ZbV7SiGyUHGQ78z.mCITxUgSb7UdQ6"], ["created_at", "2018-12-02 22:59:05.942276"], ["updated_at", "2018-12-02 22:59:05.942276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:05.952180"], ["updated_at", "2018-12-02 22:59:05.952180"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 699], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 915], ["LIMIT", 1]]
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 915], ["room_id", 699], ["created_at", "2018-12-02 22:59:05.970583"], ["updated_at", "2018-12-02 22:59:05.970583"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 699], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 915], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 915], ["room_id", 699], ["created_at", "2018-12-02 22:59:05.992483"], ["updated_at", "2018-12-02 22:59:05.992483"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:59:06 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:06.005068"], ["last_sign_in_at", "2018-12-02 22:59:06.005068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:06.006780"], ["id", 915]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 915]] Rendered appointments/my_appointments.html.erb within layouts/application (14.1ms) Rendered layouts/_header-user.html.erb (6.1ms)
Completed 200 OK in 217ms (Views: 186.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ht4sy9YROOcVnDNY4bt4VewgtXpiGDuX/y7W.YpSdEIVlWcI6.V2G"], ["created_at", "2018-12-02 22:59:06.418681"], ["updated_at", "2018-12-02 22:59:06.418681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:06.425802"], ["updated_at", "2018-12-02 22:59:06.425802"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 700], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 916], ["LIMIT", 1]]
[1m[35mSQL (1.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 916], ["room_id", 700], ["created_at", "2018-12-02 22:59:06.439794"], ["updated_at", "2018-12-02 22:59:06.439794"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 700], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 916], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 916], ["room_id", 700], ["created_at", "2018-12-02 22:59:06.453246"], ["updated_at", "2018-12-02 22:59:06.453246"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 20:59:06 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:06.461049"], ["last_sign_in_at", "2018-12-02 22:59:06.461049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:06.462441"], ["id", 916]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 916]] Rendered appointments/my_appointments.html.erb within layouts/application (6.5ms) Rendered layouts/_header-user.html.erb (6.4ms)
Completed 200 OK in 101ms (Views: 98.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$PgQfgkI7cK7Hkq6z4yyPOelBc.CGSRwp8IlaZOFkb4svX3MOEkU7W"], ["created_at", "2018-12-02 22:59:06.762370"], ["updated_at", "2018-12-02 22:59:06.762370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 22:59:06.768532"], ["updated_at", "2018-12-02 22:59:06.768532"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 701], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 917], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 917], ["room_id", 701], ["created_at", "2018-12-02 22:59:06.779884"], ["updated_at", "2018-12-02 22:59:06.779884"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/250” for 127.0.0.1 at 2018-12-02 20:59:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 22:59:06.786975"], ["last_sign_in_at", "2018-12-02 22:59:06.786975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 22:59:06.788391"], ["id", 917]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"250"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$p/ydymdlh5S298ByTdUdYu5xel3tODHew89UkT//P4irbs0Jg7d.S"], ["created_at", "2018-12-02 23:03:26.586086"], ["updated_at", "2018-12-02 23:03:26.586086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:26.612847"], ["updated_at", "2018-12-02 23:03:26.612847"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 702], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$83/1nT8e7lnh.VACcmoBeexfGELBkj0uYMlEpo/l.aI6n3HkunVFe"], ["created_at", "2018-12-02 23:03:26.819955"], ["updated_at", "2018-12-02 23:03:26.819955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:26.824919"], ["updated_at", "2018-12-02 23:03:26.824919"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jz1CYrw/IbOLbhzG7E2hweFiz/W0qfeIxw/y.A1sjQQprJWIXrj2K"], ["created_at", "2018-12-02 23:03:26.998027"], ["updated_at", "2018-12-02 23:03:26.998027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:27.004364"], ["updated_at", "2018-12-02 23:03:27.004364"], ["tipo_sala", "palestras"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:27 -0200
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:27.047983"], ["last_sign_in_at", "2018-12-02 23:03:27.047983"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:27.049457"], ["id", 920]] [1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"704", "user_id"=>"920"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:27 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"704", "user_id"=>"920"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$G3NMSd8ikB.ulIO2Oeu7.uSe0xPlUGwT/iBdc8D/dETjJf.l2oimi"], ["created_at", "2018-12-02 23:03:28.029859"], ["updated_at", "2018-12-02 23:03:28.029859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:28.036270"], ["updated_at", "2018-12-02 23:03:28.036270"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:28 -0200
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:28.047172"], ["last_sign_in_at", "2018-12-02 23:03:28.047172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:28.049379"], ["id", 921]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"705", "user_id"=>"921"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:28 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"705", "user_id"=>"921"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 705], ["user_id", 921], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ZYTKMBByWu/.J/czZ28aO.jyUev4qd0YkDJSlVzzY9cHnpDbRS3NK"], ["created_at", "2018-12-02 23:03:28.945615"], ["updated_at", "2018-12-02 23:03:28.945615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:28.952140"], ["updated_at", "2018-12-02 23:03:28.952140"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:28 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:28.961837"], ["last_sign_in_at", "2018-12-02 23:03:28.961837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:28.963115"], ["id", 922]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"706", "user_id"=>"922"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:29 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"706", "user_id"=>"922"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 706], ["user_id", 922], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$6Sdy5Ud3JpvxPMF.IvrPmuFDd37y4IIK3jI/Yc8haoSD5DYpPKpwC"], ["created_at", "2018-12-02 23:03:30.000574"], ["updated_at", "2018-12-02 23:03:30.000574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:30.008344"], ["updated_at", "2018-12-02 23:03:30.008344"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:30 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:30.018654"], ["last_sign_in_at", "2018-12-02 23:03:30.018654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:30.020069"], ["id", 923]] [1m[35m (1.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"707"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 707], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$I4mBdR46QrjC0PxrO1XD0emtO9Doey1XQOpBIh2BVi/KAWi2stpIa"], ["created_at", "2018-12-02 23:03:30.573724"], ["updated_at", "2018-12-02 23:03:30.573724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:30.578666"], ["updated_at", "2018-12-02 23:03:30.578666"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:03:30 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:30.584713"], ["last_sign_in_at", "2018-12-02 23:03:30.584713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:30.585796"], ["id", 924]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"708"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$HQ5odYwxd3bVc/AllAjgeuT0ZwzouF7J6moocCD3MGLpOA19/Hknq"], ["created_at", "2018-12-02 23:03:31.117917"], ["updated_at", "2018-12-02 23:03:31.117917"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:31.122495"], ["updated_at", "2018-12-02 23:03:31.122495"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 709], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 925], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 925], ["room_id", 709], ["created_at", "2018-12-02 23:03:31.171065"], ["updated_at", "2018-12-02 23:03:31.171065"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/709” for 127.0.0.1 at 2018-12-02 21:03:31 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:31.177272"], ["last_sign_in_at", "2018-12-02 23:03:31.177272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:31.178549"], ["id", 925]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"709"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 709], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '709')[0m
Rendered appointments/show.html.erb within layouts/application (15.9ms)
Rendered layouts/_header-user.html.erb (11.3ms)
Completed 200 OK in 521ms (Views: 516.2ms | ActiveRecord: 1.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$warL8s0pwZaAOFS7oYhjOe.X8nsrmWtyPyetjYH12XlhSbDY0.i/m"], ["created_at", "2018-12-02 23:03:31.890674"], ["updated_at", "2018-12-02 23:03:31.890674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:31.897247"], ["updated_at", "2018-12-02 23:03:31.897247"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 926], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 926], ["room_id", 710], ["created_at", "2018-12-02 23:03:31.908978"], ["updated_at", "2018-12-02 23:03:31.908978"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 710], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 926], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 926], ["room_id", 710], ["created_at", "2018-12-02 23:03:31.923211"], ["updated_at", "2018-12-02 23:03:31.923211"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:03:31 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:31.931920"], ["last_sign_in_at", "2018-12-02 23:03:31.931920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:31.933167"], ["id", 926]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 926]] Rendered appointments/my_appointments.html.erb within layouts/application (9.3ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 164ms (Views: 142.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (1.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$oWKAY2Cl41cTUTbaJdIe4u/5CYFXNA76yRdTmHIDJ5eXfbtCOqf8K"], ["created_at", "2018-12-02 23:03:32.285650"], ["updated_at", "2018-12-02 23:03:32.285650"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:32.293288"], ["updated_at", "2018-12-02 23:03:32.293288"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 927], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 927], ["room_id", 711], ["created_at", "2018-12-02 23:03:32.309084"], ["updated_at", "2018-12-02 23:03:32.309084"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 711], ["LIMIT", 1]]
[1m[36mUser Load (1.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 927], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 927], ["room_id", 711], ["created_at", "2018-12-02 23:03:32.322985"], ["updated_at", "2018-12-02 23:03:32.322985"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:03:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:32.332163"], ["last_sign_in_at", "2018-12-02 23:03:32.332163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:32.333999"], ["id", 927]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 927]] Rendered appointments/my_appointments.html.erb within layouts/application (4.3ms) Rendered layouts/_header-user.html.erb (3.6ms)
Completed 200 OK in 60ms (Views: 58.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$q4AqChOpXtrYGC2kPgWMNuv83MZU.h/JkeWyX8XhWUxN.68nJH7y2"], ["created_at", "2018-12-02 23:03:32.571943"], ["updated_at", "2018-12-02 23:03:32.571943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:03:32.579929"], ["updated_at", "2018-12-02 23:03:32.579929"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 712], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 928], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 928], ["room_id", 712], ["created_at", "2018-12-02 23:03:32.590079"], ["updated_at", "2018-12-02 23:03:32.590079"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/256” for 127.0.0.1 at 2018-12-02 21:03:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:03:32.595299"], ["last_sign_in_at", "2018-12-02 23:03:32.595299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:03:32.596362"], ["id", 928]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"256"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$EFzdsmYpReeGR05arBNnjuyBQxGwCSuwOeHMOptkCPPIi1khIsHj6"], ["created_at", "2018-12-02 23:04:27.128126"], ["updated_at", "2018-12-02 23:04:27.128126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:27.154982"], ["updated_at", "2018-12-02 23:04:27.154982"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:27 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:27.186494"], ["last_sign_in_at", "2018-12-02 23:04:27.186494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:27.187789"], ["id", 929]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"713"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 713], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$KfPJ6FNN/XoUAaTzvIafK.w4Z7zCZwEAemFvpji0JWuG4pArSRqXC"], ["created_at", "2018-12-02 23:04:27.785373"], ["updated_at", "2018-12-02 23:04:27.785373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:27.789785"], ["updated_at", "2018-12-02 23:04:27.789785"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:27 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:27.797625"], ["last_sign_in_at", "2018-12-02 23:04:27.797625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:27.799352"], ["id", 930]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"714"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 7ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jFcGqZVaPZriwk3TwJwyzO2RvYicrMgV1GseTq5qYyKts5jIqnbPK"], ["created_at", "2018-12-02 23:04:28.280857"], ["updated_at", "2018-12-02 23:04:28.280857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:28.286714"], ["updated_at", "2018-12-02 23:04:28.286714"], ["tipo_sala", "palestras"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:28 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:28.296160"], ["last_sign_in_at", "2018-12-02 23:04:28.296160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:28.297420"], ["id", 931]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"715", "user_id"=>"931"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:28 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"715", "user_id"=>"931"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Ug/wSAwMcU4pPREcyXooYOR51I5OUbWoT7VRFHU0BUrm/3zqB4tVe"], ["created_at", "2018-12-02 23:04:29.112876"], ["updated_at", "2018-12-02 23:04:29.112876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:29.119010"], ["updated_at", "2018-12-02 23:04:29.119010"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:29 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:29.128172"], ["last_sign_in_at", "2018-12-02 23:04:29.128172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:29.129274"], ["id", 932]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"716", "user_id"=>"932"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:29 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"716", "user_id"=>"932"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 716], ["user_id", 932], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.yKJCHZToH3UhWDh9V8TFedFtcTCrakgasYp81BNYKzlrxXxxGnr2"], ["created_at", "2018-12-02 23:04:30.042403"], ["updated_at", "2018-12-02 23:04:30.042403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:30.046712"], ["updated_at", "2018-12-02 23:04:30.046712"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:30 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:30.052893"], ["last_sign_in_at", "2018-12-02 23:04:30.052893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:30.054062"], ["id", 933]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"717", "user_id"=>"933"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:30 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"717", "user_id"=>"933"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 717], ["user_id", 933], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$1r5eCDISiUtbbh65OlgSPuaorJo8WCGO6yij3FZ9QHkzgLCCeEpm6"], ["created_at", "2018-12-02 23:04:30.863617"], ["updated_at", "2018-12-02 23:04:30.863617"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:30.867729"], ["updated_at", "2018-12-02 23:04:30.867729"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:30 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:30.872933"], ["last_sign_in_at", "2018-12-02 23:04:30.872933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:30.874038"], ["id", 934]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"718"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 718], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$w68kbFYrmi.6lQL4vLgqgOsORuI.KJj.c0TuFF6PrS3JkcperetQ2"], ["created_at", "2018-12-02 23:04:31.367621"], ["updated_at", "2018-12-02 23:04:31.367621"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:31.372122"], ["updated_at", "2018-12-02 23:04:31.372122"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:04:31 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:31.377804"], ["last_sign_in_at", "2018-12-02 23:04:31.377804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:31.379032"], ["id", 935]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"719"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$i028p.fbnFG8nXMLXRd75OZucNSOna8wcdR7QMdIA0cto9zlqLbku"], ["created_at", "2018-12-02 23:04:31.862851"], ["updated_at", "2018-12-02 23:04:31.862851"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:31.867373"], ["updated_at", "2018-12-02 23:04:31.867373"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 720], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 936], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 936], ["room_id", 720], ["created_at", "2018-12-02 23:04:31.912178"], ["updated_at", "2018-12-02 23:04:31.912178"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/720” for 127.0.0.1 at 2018-12-02 21:04:31 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:31.917836"], ["last_sign_in_at", "2018-12-02 23:04:31.917836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:31.918960"], ["id", 936]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"720"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 720], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '720')[0m
Rendered appointments/show.html.erb within layouts/application (18.5ms)
Rendered layouts/_header-user.html.erb (10.5ms)
Completed 200 OK in 462ms (Views: 457.1ms | ActiveRecord: 1.2ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$F3ocUvHjOeUx35pqEygCHuplF6dBo3Fz8gpFAzJAFk.Giz2ty2Qpy"], ["created_at", "2018-12-02 23:04:32.561376"], ["updated_at", "2018-12-02 23:04:32.561376"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:32.566658"], ["updated_at", "2018-12-02 23:04:32.566658"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 721], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 937], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 937], ["room_id", 721], ["created_at", "2018-12-02 23:04:32.578265"], ["updated_at", "2018-12-02 23:04:32.578265"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 721], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 937], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 937], ["room_id", 721], ["created_at", "2018-12-02 23:04:32.589785"], ["updated_at", "2018-12-02 23:04:32.589785"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:04:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:32.596189"], ["last_sign_in_at", "2018-12-02 23:04:32.596189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:32.598119"], ["id", 937]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 937]] Rendered appointments/my_appointments.html.erb within layouts/application (9.2ms) Rendered layouts/_header-user.html.erb (7.3ms)
Completed 200 OK in 168ms (Views: 148.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ZBAwao3zJlPZuPl5rsFgYeJmNY4Oj75GpYGIP1hsSIqKxF0vziq06"], ["created_at", "2018-12-02 23:04:32.942470"], ["updated_at", "2018-12-02 23:04:32.942470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:32.947310"], ["updated_at", "2018-12-02 23:04:32.947310"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 722], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 938], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 938], ["room_id", 722], ["created_at", "2018-12-02 23:04:32.957640"], ["updated_at", "2018-12-02 23:04:32.957640"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 722], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 938], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 938], ["room_id", 722], ["created_at", "2018-12-02 23:04:32.967168"], ["updated_at", "2018-12-02 23:04:32.967168"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:04:32 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:32.972462"], ["last_sign_in_at", "2018-12-02 23:04:32.972462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:32.973438"], ["id", 938]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 938]] Rendered appointments/my_appointments.html.erb within layouts/application (5.1ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 69ms (Views: 67.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$xZA5v.d/oNKiC38MxKFuoOkuCc8ASB8.dYSLmrG2fBwVi0OpAuI9e"], ["created_at", "2018-12-02 23:04:33.212795"], ["updated_at", "2018-12-02 23:04:33.212795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:04:33.216746"], ["updated_at", "2018-12-02 23:04:33.216746"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 723], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 939], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 939], ["room_id", 723], ["created_at", "2018-12-02 23:04:33.224825"], ["updated_at", "2018-12-02 23:04:33.224825"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/262” for 127.0.0.1 at 2018-12-02 21:04:33 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:04:33.229682"], ["last_sign_in_at", "2018-12-02 23:04:33.229682"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:04:33.230865"], ["id", 939]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"262"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Q1eKKGYOh6YEpnfwA9ORT.cCqt.c.4w5XfujLBQRXp4gT6xQ/sNMC"], ["created_at", "2018-12-02 23:10:20.275139"], ["updated_at", "2018-12-02 23:10:20.275139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:20.303299"], ["updated_at", "2018-12-02 23:10:20.303299"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:20 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:20.334923"], ["last_sign_in_at", "2018-12-02 23:10:20.334923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:20.336109"], ["id", 940]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"724"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 724], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$nJyfpuRKTgTQroHKJ091m.kPJ3.a3JzpOxhRfGHLZtyaAMfnKoosy"], ["created_at", "2018-12-02 23:10:20.922962"], ["updated_at", "2018-12-02 23:10:20.922962"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:20.927809"], ["updated_at", "2018-12-02 23:10:20.927809"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:20 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:20.935154"], ["last_sign_in_at", "2018-12-02 23:10:20.935154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:20.936394"], ["id", 941]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"725"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$95uxTCmEEBU0.E4HHPYD6uUa75IMMm4LT0PbTl3j0MTQ9xrXIh2IC"], ["created_at", "2018-12-02 23:10:21.422924"], ["updated_at", "2018-12-02 23:10:21.422924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:21.427297"], ["updated_at", "2018-12-02 23:10:21.427297"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:21 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:21.433421"], ["last_sign_in_at", "2018-12-02 23:10:21.433421"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:21.434599"], ["id", 942]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"726", "user_id"=>"942"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:21 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"726", "user_id"=>"942"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$GUw4/S/BXpXohPCr0cv7wugsNfK0Uyw/pNc/AYx0imB2iR4UVMNju"], ["created_at", "2018-12-02 23:10:22.241406"], ["updated_at", "2018-12-02 23:10:22.241406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:22.245848"], ["updated_at", "2018-12-02 23:10:22.245848"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:22 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:22.252087"], ["last_sign_in_at", "2018-12-02 23:10:22.252087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:22.253030"], ["id", 943]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"727", "user_id"=>"943"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:22 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"727", "user_id"=>"943"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 727], ["user_id", 943], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$HSF1Enw/G5YEE0G099WCjOBCjoea0dshKEsBWdgPkQzBGLedzsVvi"], ["created_at", "2018-12-02 23:10:23.141013"], ["updated_at", "2018-12-02 23:10:23.141013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:23.145037"], ["updated_at", "2018-12-02 23:10:23.145037"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:23 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:23.151330"], ["last_sign_in_at", "2018-12-02 23:10:23.151330"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:23.152267"], ["id", 944]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"728", "user_id"=>"944"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:23 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"728", "user_id"=>"944"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 728], ["user_id", 944], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QQq/hc.jpZLG7kFKBL/KRuuSKVj.S5WQR/k/qCm80fXCdRLFswsU."], ["created_at", "2018-12-02 23:10:23.962126"], ["updated_at", "2018-12-02 23:10:23.962126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:23.966269"], ["updated_at", "2018-12-02 23:10:23.966269"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:23.971631"], ["last_sign_in_at", "2018-12-02 23:10:23.971631"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:23.972810"], ["id", 945]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"729"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 729], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$XtEpzCZcZB5CJqUm0mv7W.LNG39XXXiLZf2SEMy7cjaWex/sPenLG"], ["created_at", "2018-12-02 23:10:24.467378"], ["updated_at", "2018-12-02 23:10:24.467378"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:24.471401"], ["updated_at", "2018-12-02 23:10:24.471401"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:10:24 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:24.476637"], ["last_sign_in_at", "2018-12-02 23:10:24.476637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:24.477635"], ["id", 946]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"730"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CwZOaLQdV.qHD.BkjFKOeOLD4cyMZ6vnmz9Bb36rrz2iTEvkyF7ay"], ["created_at", "2018-12-02 23:10:24.963346"], ["updated_at", "2018-12-02 23:10:24.963346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:24.967449"], ["updated_at", "2018-12-02 23:10:24.967449"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 731], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 947], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 947], ["room_id", 731], ["created_at", "2018-12-02 23:10:25.012138"], ["updated_at", "2018-12-02 23:10:25.012138"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/731” for 127.0.0.1 at 2018-12-02 21:10:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:25.017693"], ["last_sign_in_at", "2018-12-02 23:10:25.017693"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:25.018961"], ["id", 947]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"731"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 731], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '731')[0m
Rendered appointments/show.html.erb within layouts/application (15.9ms)
Rendered layouts/_header-user.html.erb (10.4ms)
Completed 200 OK in 490ms (Views: 485.1ms | ActiveRecord: 1.5ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CmQ8RLCKWQeMNZcSoC0Oau6tBHfPvRnoEQxr6lYSURKKs6lbzDTeS"], ["created_at", "2018-12-02 23:10:25.692735"], ["updated_at", "2018-12-02 23:10:25.692735"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:25.698573"], ["updated_at", "2018-12-02 23:10:25.698573"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 732], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 948], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 948], ["room_id", 732], ["created_at", "2018-12-02 23:10:25.716877"], ["updated_at", "2018-12-02 23:10:25.716877"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 732], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 948], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 948], ["room_id", 732], ["created_at", "2018-12-02 23:10:25.728327"], ["updated_at", "2018-12-02 23:10:25.728327"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:10:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:25.736091"], ["last_sign_in_at", "2018-12-02 23:10:25.736091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:25.737504"], ["id", 948]] [1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 948]] Rendered appointments/my_appointments.html.erb within layouts/application (9.6ms) Rendered layouts/_header-user.html.erb (4.3ms)
Completed 200 OK in 137ms (Views: 116.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$J93DCrVWy/IgnFa3Aji25OwlOvj1Y.hB2E5/rfJGxjWLKIUtjdhGS"], ["created_at", "2018-12-02 23:10:26.046110"], ["updated_at", "2018-12-02 23:10:26.046110"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:26.051161"], ["updated_at", "2018-12-02 23:10:26.051161"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 733], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 949], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 949], ["room_id", 733], ["created_at", "2018-12-02 23:10:26.061334"], ["updated_at", "2018-12-02 23:10:26.061334"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 733], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 949], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 949], ["room_id", 733], ["created_at", "2018-12-02 23:10:26.071244"], ["updated_at", "2018-12-02 23:10:26.071244"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:10:26 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:26.076805"], ["last_sign_in_at", "2018-12-02 23:10:26.076805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:26.077928"], ["id", 949]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 949]] Rendered appointments/my_appointments.html.erb within layouts/application (5.1ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 68ms (Views: 65.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Qkzh2cslZ.MTQiY2QlY7K.tSpzMmPJlOfZxNK8xl9fPWuFLVPFoQi"], ["created_at", "2018-12-02 23:10:26.322937"], ["updated_at", "2018-12-02 23:10:26.322937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:10:26.326983"], ["updated_at", "2018-12-02 23:10:26.326983"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 734], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 950], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 950], ["room_id", 734], ["created_at", "2018-12-02 23:10:26.334858"], ["updated_at", "2018-12-02 23:10:26.334858"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/268” for 127.0.0.1 at 2018-12-02 21:10:26 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:10:26.339863"], ["last_sign_in_at", "2018-12-02 23:10:26.339863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:10:26.340742"], ["id", 950]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"268"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$FtWdRl74x6QAY73kSrp9z.bZFUlj.bnACoL4egpKxH1aerU4lkoYa"], ["created_at", "2018-12-02 23:11:20.102126"], ["updated_at", "2018-12-02 23:11:20.102126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:20.129024"], ["updated_at", "2018-12-02 23:11:20.129024"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$1IeynJ3mzzJiKU.ZCENwCeTqbzRDsTXDKW0ywhoZLmFt8jJ6XNTFa"], ["created_at", "2018-12-02 23:11:20.305243"], ["updated_at", "2018-12-02 23:11:20.305243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:20.309481"], ["updated_at", "2018-12-02 23:11:20.309481"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Thg3x4zT6CwNqcCzqINJOuh53dIr/oLbsswZe0cn/PjqzXp8pBl0S"], ["created_at", "2018-12-02 23:11:20.479726"], ["updated_at", "2018-12-02 23:11:20.479726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:20.483659"], ["updated_at", "2018-12-02 23:11:20.483659"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:20 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:20.508632"], ["last_sign_in_at", "2018-12-02 23:11:20.508632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:20.509844"], ["id", 953]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"737", "user_id"=>"953"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:20 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"737", "user_id"=>"953"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dtVHcz6GKujoy51tf6RRF.s8h0l996T01KO2C20kJLEl8CGqosPh2"], ["created_at", "2018-12-02 23:11:21.349402"], ["updated_at", "2018-12-02 23:11:21.349402"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:21.354295"], ["updated_at", "2018-12-02 23:11:21.354295"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:21 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:21.360506"], ["last_sign_in_at", "2018-12-02 23:11:21.360506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:21.361911"], ["id", 954]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"738", "user_id"=>"954"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:21 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"738", "user_id"=>"954"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 738], ["user_id", 954], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vO76UMkZpF2C2cInFSY8muZOHNpFcpn0YKlpN8/BkRA6Oqv8CcaA2"], ["created_at", "2018-12-02 23:11:22.267059"], ["updated_at", "2018-12-02 23:11:22.267059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:22.271537"], ["updated_at", "2018-12-02 23:11:22.271537"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:22 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:22.278183"], ["last_sign_in_at", "2018-12-02 23:11:22.278183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:22.279419"], ["id", 955]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"739", "user_id"=>"955"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:22 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"739", "user_id"=>"955"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 739], ["user_id", 955], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CHS3TYkdbFzkhCRd5zfeKejd12I/iPaMQ..Wobu1lW1Fmv4fn/5hm"], ["created_at", "2018-12-02 23:11:23.097253"], ["updated_at", "2018-12-02 23:11:23.097253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:23.101621"], ["updated_at", "2018-12-02 23:11:23.101621"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:23.107178"], ["last_sign_in_at", "2018-12-02 23:11:23.107178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:23.108244"], ["id", 956]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"740"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 740], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$KN1oJOv88Mu.33k/wzIoheTQcuk35kwKdZCqLBEp4Q6NgHyxrS3Pq"], ["created_at", "2018-12-02 23:11:23.595614"], ["updated_at", "2018-12-02 23:11:23.595614"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:23.600066"], ["updated_at", "2018-12-02 23:11:23.600066"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:11:23 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:23.605660"], ["last_sign_in_at", "2018-12-02 23:11:23.605660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:23.606843"], ["id", 957]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"741"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ij92022XLgZYT5qsL9ij0uiQOYUUkdHiF7qrII49UdzKakftH0ZpK"], ["created_at", "2018-12-02 23:11:24.091509"], ["updated_at", "2018-12-02 23:11:24.091509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:24.095412"], ["updated_at", "2018-12-02 23:11:24.095412"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 742], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 958], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 958], ["room_id", 742], ["created_at", "2018-12-02 23:11:24.133950"], ["updated_at", "2018-12-02 23:11:24.133950"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/742” for 127.0.0.1 at 2018-12-02 21:11:24 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:24.139007"], ["last_sign_in_at", "2018-12-02 23:11:24.139007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:24.139994"], ["id", 958]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"742"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 742], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '742')[0m
Rendered appointments/show.html.erb within layouts/application (15.2ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 407ms (Views: 402.5ms | ActiveRecord: 1.1ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Qod5naiEmWKPzW9hDc.jTeJ4TbA2wigJSi5JyQFIE7dWSwRkz9bHC"], ["created_at", "2018-12-02 23:11:24.721457"], ["updated_at", "2018-12-02 23:11:24.721457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (1.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:24.733080"], ["updated_at", "2018-12-02 23:11:24.733080"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 743], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 959], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 959], ["room_id", 743], ["created_at", "2018-12-02 23:11:24.741173"], ["updated_at", "2018-12-02 23:11:24.741173"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 743], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 959], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 959], ["room_id", 743], ["created_at", "2018-12-02 23:11:24.748658"], ["updated_at", "2018-12-02 23:11:24.748658"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:11:24 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:24.755070"], ["last_sign_in_at", "2018-12-02 23:11:24.755070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:24.756601"], ["id", 959]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 959]] Rendered appointments/my_appointments.html.erb within layouts/application (5.8ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 61ms (Views: 53.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ew4coaI1O0KaWaiYlPIVrObo9WedGLVL5/Dz2vZRhepYrutdT/en."], ["created_at", "2018-12-02 23:11:24.990140"], ["updated_at", "2018-12-02 23:11:24.990140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:24.994642"], ["updated_at", "2018-12-02 23:11:24.994642"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 744], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 960], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 960], ["room_id", 744], ["created_at", "2018-12-02 23:11:25.003229"], ["updated_at", "2018-12-02 23:11:25.003229"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 744], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 960], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 960], ["room_id", 744], ["created_at", "2018-12-02 23:11:25.011989"], ["updated_at", "2018-12-02 23:11:25.011989"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:11:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:25.017071"], ["last_sign_in_at", "2018-12-02 23:11:25.017071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:25.018084"], ["id", 960]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 960]] Rendered appointments/my_appointments.html.erb within layouts/application (4.3ms) Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 52ms (Views: 50.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ezKMj94zupJB9oK6ZBmcDO.gWthU8KDoOIp3gce7x47xUYLaV8TbW"], ["created_at", "2018-12-02 23:11:25.246805"], ["updated_at", "2018-12-02 23:11:25.246805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:11:25.251372"], ["updated_at", "2018-12-02 23:11:25.251372"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 745], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 961], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 961], ["room_id", 745], ["created_at", "2018-12-02 23:11:25.259351"], ["updated_at", "2018-12-02 23:11:25.259351"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/274” for 127.0.0.1 at 2018-12-02 21:11:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:11:25.264248"], ["last_sign_in_at", "2018-12-02 23:11:25.264248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:11:25.265220"], ["id", 961]] [1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"274"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$1ipfKQ1sBdF1sEua6sk2iedT42abVCRu.p8In5c8TzoQDEEfnRN/G"], ["created_at", "2018-12-02 23:19:41.227489"], ["updated_at", "2018-12-02 23:19:41.227489"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:41.273203"], ["updated_at", "2018-12-02 23:19:41.273203"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:41 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:41.304871"], ["last_sign_in_at", "2018-12-02 23:19:41.304871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:41.306217"], ["id", 962]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"746"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 746], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$NnlHRm.neVzLaVe/ItMzlepnSrz0rr5Wn0la0D6kiMWDJEvr8fFHG"], ["created_at", "2018-12-02 23:19:41.854025"], ["updated_at", "2018-12-02 23:19:41.854025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:41.858511"], ["updated_at", "2018-12-02 23:19:41.858511"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:41 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:41.866272"], ["last_sign_in_at", "2018-12-02 23:19:41.866272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:41.867779"], ["id", 963]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"747"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$cA/cEjN2IjPncMOg64efzOQ3vnUlShT2cBUxb41T5vjJgjlJPr51u"], ["created_at", "2018-12-02 23:19:42.360458"], ["updated_at", "2018-12-02 23:19:42.360458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:42.365004"], ["updated_at", "2018-12-02 23:19:42.365004"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:42 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:42.371453"], ["last_sign_in_at", "2018-12-02 23:19:42.371453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:42.372626"], ["id", 964]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"748", "user_id"=>"964"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:42 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"748", "user_id"=>"964"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$5J7uK0q9GsiOb..W.KUkbOLQV76OYvooN5sMxk3d64wx2YQ6y4ycO"], ["created_at", "2018-12-02 23:19:43.205772"], ["updated_at", "2018-12-02 23:19:43.205772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:43.210380"], ["updated_at", "2018-12-02 23:19:43.210380"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:43 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:43.217299"], ["last_sign_in_at", "2018-12-02 23:19:43.217299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:43.219848"], ["id", 965]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"749", "user_id"=>"965"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:43 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"749", "user_id"=>"965"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 749], ["user_id", 965], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$2xXBRX92YYA8kWA/3v0JXOJ.Ejg91UlzjNzfxVhnnizglZXLOeAYC"], ["created_at", "2018-12-02 23:19:44.134462"], ["updated_at", "2018-12-02 23:19:44.134462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:44.139019"], ["updated_at", "2018-12-02 23:19:44.139019"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:44 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:44.145412"], ["last_sign_in_at", "2018-12-02 23:19:44.145412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:44.146805"], ["id", 966]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"750", "user_id"=>"966"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:44 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"750", "user_id"=>"966"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 750], ["user_id", 966], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$4J5o/jxkT8kC4uMWcXSXeONQFfeKqF2tDFIzdlwv1LBwfztgdZIK2"], ["created_at", "2018-12-02 23:19:44.987550"], ["updated_at", "2018-12-02 23:19:44.987550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:44.999983"], ["updated_at", "2018-12-02 23:19:44.999983"], ["tipo_sala", "palestras"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:45.010424"], ["last_sign_in_at", "2018-12-02 23:19:45.010424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:45.011571"], ["id", 967]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"751"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 751], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dX.YI..Hq3nl0cFxAM0TaeRUYW1As3TLx9mZjnELbHhNjBoNP8qjm"], ["created_at", "2018-12-02 23:19:45.513854"], ["updated_at", "2018-12-02 23:19:45.513854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:45.518243"], ["updated_at", "2018-12-02 23:19:45.518243"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:19:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:45.523899"], ["last_sign_in_at", "2018-12-02 23:19:45.523899"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:45.524998"], ["id", 968]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"752"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$9wPMFjcWvG/MG9Zb5cg9BOHSRbsbs57zMq45Acyoegox48Ly5imOS"], ["created_at", "2018-12-02 23:19:46.030950"], ["updated_at", "2018-12-02 23:19:46.030950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:46.035148"], ["updated_at", "2018-12-02 23:19:46.035148"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 753], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 969], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 969], ["room_id", 753], ["created_at", "2018-12-02 23:19:46.076437"], ["updated_at", "2018-12-02 23:19:46.076437"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/753” for 127.0.0.1 at 2018-12-02 21:19:46 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:46.081951"], ["last_sign_in_at", "2018-12-02 23:19:46.081951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:46.083140"], ["id", 969]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"753"}
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 753], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '753')[0m
Rendered appointments/show.html.erb within layouts/application (15.7ms)
Rendered layouts/_header-user.html.erb (10.1ms)
Completed 200 OK in 849ms (Views: 844.1ms | ActiveRecord: 1.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Js5LPtHMm87DmqGd3JNDHOMrllFpS6u6MnwXL5s7pd3E8gyHsCWf."], ["created_at", "2018-12-02 23:19:47.113002"], ["updated_at", "2018-12-02 23:19:47.113002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:47.119331"], ["updated_at", "2018-12-02 23:19:47.119331"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 754], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 970], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 970], ["room_id", 754], ["created_at", "2018-12-02 23:19:47.140701"], ["updated_at", "2018-12-02 23:19:47.140701"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 754], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 970], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 970], ["room_id", 754], ["created_at", "2018-12-02 23:19:47.153299"], ["updated_at", "2018-12-02 23:19:47.153299"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:19:47 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:47.160389"], ["last_sign_in_at", "2018-12-02 23:19:47.160389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:47.161681"], ["id", 970]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 970]] Rendered appointments/my_appointments.html.erb within layouts/application (11.6ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 167ms (Views: 150.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sf95ab6.6cCdex3Tlw890.Nf9vz/1npJJ4LrpxJpFdIMLvLGVhGtm"], ["created_at", "2018-12-02 23:19:47.507140"], ["updated_at", "2018-12-02 23:19:47.507140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:47.514583"], ["updated_at", "2018-12-02 23:19:47.514583"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 755], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 971], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 971], ["room_id", 755], ["created_at", "2018-12-02 23:19:47.521849"], ["updated_at", "2018-12-02 23:19:47.521849"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 755], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 971], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 971], ["room_id", 755], ["created_at", "2018-12-02 23:19:47.532207"], ["updated_at", "2018-12-02 23:19:47.532207"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:19:47 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:47.538259"], ["last_sign_in_at", "2018-12-02 23:19:47.538259"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:47.539407"], ["id", 971]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 971]] Rendered appointments/my_appointments.html.erb within layouts/application (5.0ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 55ms (Views: 53.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$kRRzv9zWjzSioyH2ZJhmue7brK53VzRNMGN2ornZVaI6aMJpGLPC6"], ["created_at", "2018-12-02 23:19:47.767491"], ["updated_at", "2018-12-02 23:19:47.767491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:19:47.771851"], ["updated_at", "2018-12-02 23:19:47.771851"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 756], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 972], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 972], ["room_id", 756], ["created_at", "2018-12-02 23:19:47.780354"], ["updated_at", "2018-12-02 23:19:47.780354"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/280” for 127.0.0.1 at 2018-12-02 21:19:47 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:19:47.785519"], ["last_sign_in_at", "2018-12-02 23:19:47.785519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:19:47.786718"], ["id", 972]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"280"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$o3ez9qAvcB.4SlmvXnkYlerti58xv/ntKQOye4eWjM54bzM3vEEOG"], ["created_at", "2018-12-02 23:20:43.912503"], ["updated_at", "2018-12-02 23:20:43.912503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:43.940928"], ["updated_at", "2018-12-02 23:20:43.940928"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:43 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:43.972774"], ["last_sign_in_at", "2018-12-02 23:20:43.972774"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:43.974032"], ["id", 973]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"757"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 757], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$daGtbab0VhrW2RqnN8ztweh8e5PhAA39D2sWIhhnB1ejD.xl73Im2"], ["created_at", "2018-12-02 23:20:44.513804"], ["updated_at", "2018-12-02 23:20:44.513804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:44.518333"], ["updated_at", "2018-12-02 23:20:44.518333"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:44 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:44.524103"], ["last_sign_in_at", "2018-12-02 23:20:44.524103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:44.525180"], ["id", 974]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"758"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$WRCPlzksDVuuRbncf9ldC.YV/MF5AFX9a6/Au5dS9BbNo49eWYQXm"], ["created_at", "2018-12-02 23:20:45.047490"], ["updated_at", "2018-12-02 23:20:45.047490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:45.052302"], ["updated_at", "2018-12-02 23:20:45.052302"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:45.058653"], ["last_sign_in_at", "2018-12-02 23:20:45.058653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:45.059744"], ["id", 975]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"759", "user_id"=>"975"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:45 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"759", "user_id"=>"975"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$YAU8AamI1hr4.FuAm3rwTeh92ADkptGPQjlsLhAJ0tFWo7XeoLmBm"], ["created_at", "2018-12-02 23:20:45.857505"], ["updated_at", "2018-12-02 23:20:45.857505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:45.861913"], ["updated_at", "2018-12-02 23:20:45.861913"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:45.868127"], ["last_sign_in_at", "2018-12-02 23:20:45.868127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:45.869229"], ["id", 976]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"760", "user_id"=>"976"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:46 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"760", "user_id"=>"976"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 760], ["user_id", 976], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$vnoRHCIIxZZ7eOZSv24w..fKRt6fE7HPXyzH5ZtvSHU8.XI9OBQdm"], ["created_at", "2018-12-02 23:20:46.756501"], ["updated_at", "2018-12-02 23:20:46.756501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:46.761001"], ["updated_at", "2018-12-02 23:20:46.761001"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:46 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:46.768063"], ["last_sign_in_at", "2018-12-02 23:20:46.768063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:46.769045"], ["id", 977]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"761", "user_id"=>"977"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:47 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"761", "user_id"=>"977"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 761], ["user_id", 977], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.Ax6bQDEQfOUqomPCmAkkOqwLuMAsxmG1poHSkT7EQlW4yGoySyXC"], ["created_at", "2018-12-02 23:20:47.572420"], ["updated_at", "2018-12-02 23:20:47.572420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:47.576994"], ["updated_at", "2018-12-02 23:20:47.576994"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:47 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:47.583192"], ["last_sign_in_at", "2018-12-02 23:20:47.583192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:47.584534"], ["id", 978]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"762"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 762], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ntYsXvKw3q9HkVxw.vIF.ucanuMsTUavMzIulOafiToe9ZG1HTEz6"], ["created_at", "2018-12-02 23:20:48.094040"], ["updated_at", "2018-12-02 23:20:48.094040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:48.099513"], ["updated_at", "2018-12-02 23:20:48.099513"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:20:48 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:48.105992"], ["last_sign_in_at", "2018-12-02 23:20:48.105992"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:48.107154"], ["id", 979]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"763"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$0t0MbjHImQN40micSrZ41eS8SqsWznHfYt8511lKXVm1ZyAaBRs7u"], ["created_at", "2018-12-02 23:20:48.598027"], ["updated_at", "2018-12-02 23:20:48.598027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:48.602725"], ["updated_at", "2018-12-02 23:20:48.602725"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 764], ["LIMIT", 1]]
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 980], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 980], ["room_id", 764], ["created_at", "2018-12-02 23:20:48.644116"], ["updated_at", "2018-12-02 23:20:48.644116"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/764” for 127.0.0.1 at 2018-12-02 21:20:48 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:48.649849"], ["last_sign_in_at", "2018-12-02 23:20:48.649849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:48.651155"], ["id", 980]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"764"}
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 764], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '764')[0m
Rendered appointments/show.html.erb within layouts/application (16.8ms)
Rendered layouts/_header-user.html.erb (8.9ms)
Completed 200 OK in 481ms (Views: 475.0ms | ActiveRecord: 1.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$f/uBknSvtn20EVjuKSLoDuiHkFBKINVHFdvR0JkoezCKNhsd6zLOW"], ["created_at", "2018-12-02 23:20:49.305345"], ["updated_at", "2018-12-02 23:20:49.305345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:49.312278"], ["updated_at", "2018-12-02 23:20:49.312278"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 765], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 981], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 981], ["room_id", 765], ["created_at", "2018-12-02 23:20:49.325955"], ["updated_at", "2018-12-02 23:20:49.325955"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 765], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 981], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 981], ["room_id", 765], ["created_at", "2018-12-02 23:20:49.340220"], ["updated_at", "2018-12-02 23:20:49.340220"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:20:49 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:49.347910"], ["last_sign_in_at", "2018-12-02 23:20:49.347910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:49.350534"], ["id", 981]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 981]] Rendered appointments/my_appointments.html.erb within layouts/application (10.1ms) Rendered layouts/_header-user.html.erb (4.5ms)
Completed 200 OK in 140ms (Views: 118.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ihCru39ZoRHHyyWLdFEwSuGaLCK95EkAd/KbrbxgGYzFoq3diZr7S"], ["created_at", "2018-12-02 23:20:49.662797"], ["updated_at", "2018-12-02 23:20:49.662797"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:49.670146"], ["updated_at", "2018-12-02 23:20:49.670146"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 766], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 982], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 982], ["room_id", 766], ["created_at", "2018-12-02 23:20:49.682154"], ["updated_at", "2018-12-02 23:20:49.682154"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 766], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 982], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 982], ["room_id", 766], ["created_at", "2018-12-02 23:20:49.694280"], ["updated_at", "2018-12-02 23:20:49.694280"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:20:49 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:49.701527"], ["last_sign_in_at", "2018-12-02 23:20:49.701527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:49.703129"], ["id", 982]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 982]] Rendered appointments/my_appointments.html.erb within layouts/application (5.1ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 74ms (Views: 71.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$H8YtUnaUV8gbtwomceHtcu6Ud0ZF9Y0D/nQrK5X.JnujzFyGLXVZO"], ["created_at", "2018-12-02 23:20:49.946270"], ["updated_at", "2018-12-02 23:20:49.946270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:20:49.950796"], ["updated_at", "2018-12-02 23:20:49.950796"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 767], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 983], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 983], ["room_id", 767], ["created_at", "2018-12-02 23:20:49.959121"], ["updated_at", "2018-12-02 23:20:49.959121"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/286” for 127.0.0.1 at 2018-12-02 21:20:49 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:20:49.964141"], ["last_sign_in_at", "2018-12-02 23:20:49.964141"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:20:49.965143"], ["id", 983]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"286"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$LVf9IXB34ahUJGGBeAGK2eSoGD9M9Nxxi2F4P4wJGhN4gfBw6S8NO"], ["created_at", "2018-12-02 23:21:26.041852"], ["updated_at", "2018-12-02 23:21:26.041852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:26.068455"], ["updated_at", "2018-12-02 23:21:26.068455"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:26 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:26.101605"], ["last_sign_in_at", "2018-12-02 23:21:26.101605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:26.102949"], ["id", 984]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"768"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (1.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 768], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$7nuPrjvgzrwgkHI/xJPQUumYM6OcmAPH3h.5/4W8tRhFQLSkkr3fO"], ["created_at", "2018-12-02 23:21:26.644462"], ["updated_at", "2018-12-02 23:21:26.644462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:26.648821"], ["updated_at", "2018-12-02 23:21:26.648821"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:26 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:26.656899"], ["last_sign_in_at", "2018-12-02 23:21:26.656899"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:26.658286"], ["id", 985]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"769"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$pUJKpycChVxGPvjJSNKATe0UTXOouKyhi7DXJCrqFMz/WaYeuMgzG"], ["created_at", "2018-12-02 23:21:27.133109"], ["updated_at", "2018-12-02 23:21:27.133109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:27.137144"], ["updated_at", "2018-12-02 23:21:27.137144"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:27 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:27.143927"], ["last_sign_in_at", "2018-12-02 23:21:27.143927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:27.144987"], ["id", 986]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"770", "user_id"=>"986"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:27 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"770", "user_id"=>"986"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Oij2erk.DIksazwzx7w/K.XyCAc.ZilWb2iWO15RMctEZ74yl.9au"], ["created_at", "2018-12-02 23:21:27.936747"], ["updated_at", "2018-12-02 23:21:27.936747"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:27.941027"], ["updated_at", "2018-12-02 23:21:27.941027"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:27 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:27.947430"], ["last_sign_in_at", "2018-12-02 23:21:27.947430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:27.948592"], ["id", 987]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"771", "user_id"=>"987"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:28 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"771", "user_id"=>"987"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 771], ["user_id", 987], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$WcLZud6LEGtodV5ng/kcI.IjlR9syTLQRPmXXIoFd/AT.psy4XsRS"], ["created_at", "2018-12-02 23:21:28.750421"], ["updated_at", "2018-12-02 23:21:28.750421"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:28.754769"], ["updated_at", "2018-12-02 23:21:28.754769"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:28 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:28.760878"], ["last_sign_in_at", "2018-12-02 23:21:28.760878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:28.762202"], ["id", 988]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"772", "user_id"=>"988"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:29 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"772", "user_id"=>"988"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 772], ["user_id", 988], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$PTxbLl4ThkCQibVLjB5Wtu83vKvCwft9ICKjICWd7zi7tJoZUtFR."], ["created_at", "2018-12-02 23:21:29.551342"], ["updated_at", "2018-12-02 23:21:29.551342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:29.556396"], ["updated_at", "2018-12-02 23:21:29.556396"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:29 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:29.562425"], ["last_sign_in_at", "2018-12-02 23:21:29.562425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:29.563656"], ["id", 989]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"773"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 773], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$DUNEZV7LacbGZuKdbkUVgeI9Gx1bMGI2j3Hjgo195Eg9Zg.i/l7V."], ["created_at", "2018-12-02 23:21:30.040152"], ["updated_at", "2018-12-02 23:21:30.040152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:30.044629"], ["updated_at", "2018-12-02 23:21:30.044629"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:21:30 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:30.050628"], ["last_sign_in_at", "2018-12-02 23:21:30.050628"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:30.051822"], ["id", 990]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"774"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$1OHHgwKVQgNqoiEEnU7uj.R3djNHTc1quhHkme2AVluLMNX7ODxL6"], ["created_at", "2018-12-02 23:21:30.538599"], ["updated_at", "2018-12-02 23:21:30.538599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:30.543160"], ["updated_at", "2018-12-02 23:21:30.543160"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 775], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 991], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 991], ["room_id", 775], ["created_at", "2018-12-02 23:21:30.591318"], ["updated_at", "2018-12-02 23:21:30.591318"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/775” for 127.0.0.1 at 2018-12-02 21:21:30 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:30.597120"], ["last_sign_in_at", "2018-12-02 23:21:30.597120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:30.598216"], ["id", 991]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"775"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 775], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '775')[0m
Rendered appointments/show.html.erb within layouts/application (23.1ms)
Rendered layouts/_header-user.html.erb (4.5ms)
Completed 200 OK in 922ms (Views: 916.3ms | ActiveRecord: 1.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$fRdZqjozGJamVKlV4T6Ine8ioXTcnNJk8lC6S48rqzTU/DjIuLjay"], ["created_at", "2018-12-02 23:21:31.698536"], ["updated_at", "2018-12-02 23:21:31.698536"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:31.705721"], ["updated_at", "2018-12-02 23:21:31.705721"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 776], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 992], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 992], ["room_id", 776], ["created_at", "2018-12-02 23:21:31.719743"], ["updated_at", "2018-12-02 23:21:31.719743"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 776], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 992], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 992], ["room_id", 776], ["created_at", "2018-12-02 23:21:31.733091"], ["updated_at", "2018-12-02 23:21:31.733091"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:21:31 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:31.740835"], ["last_sign_in_at", "2018-12-02 23:21:31.740835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:31.742480"], ["id", 992]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 992]] Rendered appointments/my_appointments.html.erb within layouts/application (15.2ms) Rendered layouts/_header-user.html.erb (12.8ms)
Completed 200 OK in 267ms (Views: 242.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (3.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (6.3ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$MrrIwFxgRj2V296N0CowX.TyY4GQS23GILaaXckHoO/iOr7Ae1EIO"], ["created_at", "2018-12-02 23:21:32.208953"], ["updated_at", "2018-12-02 23:21:32.208953"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:32.225454"], ["updated_at", "2018-12-02 23:21:32.225454"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 777], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 993], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 993], ["room_id", 777], ["created_at", "2018-12-02 23:21:32.245949"], ["updated_at", "2018-12-02 23:21:32.245949"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (1.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 777], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 993], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 993], ["room_id", 777], ["created_at", "2018-12-02 23:21:32.274408"], ["updated_at", "2018-12-02 23:21:32.274408"]]
[1m[35m (2.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:21:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:32.286003"], ["last_sign_in_at", "2018-12-02 23:21:32.286003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:32.287691"], ["id", 993]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (3.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 993]] Rendered appointments/my_appointments.html.erb within layouts/application (13.8ms) Rendered layouts/_header-user.html.erb (4.8ms)
Completed 200 OK in 136ms (Views: 130.3ms | ActiveRecord: 3.7ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$qYQ4kX5w2IBKNxbHelJaS.hpqBwfPtErlOKYk7jKWA/LNz/ZWYMgq"], ["created_at", "2018-12-02 23:21:32.617147"], ["updated_at", "2018-12-02 23:21:32.617147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:32.624555"], ["updated_at", "2018-12-02 23:21:32.624555"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 778], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 994], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 994], ["room_id", 778], ["created_at", "2018-12-02 23:21:32.639148"], ["updated_at", "2018-12-02 23:21:32.639148"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/292” for 127.0.0.1 at 2018-12-02 21:21:32 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:32.647691"], ["last_sign_in_at", "2018-12-02 23:21:32.647691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:32.649519"], ["id", 994]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"292"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$7/NAF8O/7caIVOA.5LMyPu5SMrWMa5QQX5WKRFF3tu115dg0H.ca."], ["created_at", "2018-12-02 23:21:33.343152"], ["updated_at", "2018-12-02 23:21:33.343152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:33.348331"], ["updated_at", "2018-12-02 23:21:33.348331"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$SWWSjXM5bzcir3P5O.kwIegk59fdNPm8R74aCnklGMriCkO2NpnPa"], ["created_at", "2018-12-02 23:21:33.513082"], ["updated_at", "2018-12-02 23:21:33.513082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 779], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 996], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 996], ["room_id", 779], ["created_at", "2018-12-02 23:21:33.521644"], ["updated_at", "2018-12-02 23:21:33.521644"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 23:21:33.526129"], ["id", 293]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 779], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 996], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 996], ["room_id", 779], ["created_at", "2018-12-02 23:21:33.533986"], ["updated_at", "2018-12-02 23:21:33.533986"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 23:21:33.538740"], ["id", 294]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 21:21:33 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:33.543817"], ["last_sign_in_at", "2018-12-02 23:21:33.543817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:33.545108"], ["id", 995]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 996], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 779], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 996], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 779], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (15.3ms) Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 69ms (Views: 63.0ms | ActiveRecord: 3.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$G6BcXKAMvmCxusBTaU2z5.8kzFLhRWgSo9WJPZBaxntVjZmNVNfNO"], ["created_at", "2018-12-02 23:21:33.784337"], ["updated_at", "2018-12-02 23:21:33.784337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:21:33.788916"], ["updated_at", "2018-12-02 23:21:33.788916"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$t3PAcDV66lHk85YEGYl.U.u5ASZToIvOlwdsZ9nocVM.NBIc0hUFu"], ["created_at", "2018-12-02 23:21:33.952826"], ["updated_at", "2018-12-02 23:21:33.952826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 780], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 998], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 998], ["room_id", 780], ["created_at", "2018-12-02 23:21:33.961071"], ["updated_at", "2018-12-02 23:21:33.961071"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 23:21:33.965488"], ["id", 295]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 780], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 998], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 998], ["room_id", 780], ["created_at", "2018-12-02 23:21:33.973265"], ["updated_at", "2018-12-02 23:21:33.973265"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 23:21:33.977513"], ["id", 296]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 21:21:33 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:21:33.982542"], ["last_sign_in_at", "2018-12-02 23:21:33.982542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:21:33.983697"], ["id", 997]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 998], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 780], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 998], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 780], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (15.6ms) Rendered layouts/_header-admin.html.erb (3.6ms)
Completed 200 OK in 73ms (Views: 66.7ms | ActiveRecord: 3.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$61QOF8HOXBTmN3C7ziAQ9eUGfbIb3gxcE6h2foq9cqA5jIjHFrudy"], ["created_at", "2018-12-02 23:28:01.415339"], ["updated_at", "2018-12-02 23:28:01.415339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:01.449036"], ["updated_at", "2018-12-02 23:28:01.449036"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$BBSThYB1CK7U6TwwZCvH..g8nuC.XrXodgj2jzTV2jlJiPA69KgA2"], ["created_at", "2018-12-02 23:28:01.618779"], ["updated_at", "2018-12-02 23:28:01.618779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:01.623195"], ["updated_at", "2018-12-02 23:28:01.623195"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$WnBSrh5qmE1G0ggtCdey8OudLh48xwyJS89Yp84l1VsHK1Zzw7gQ2"], ["created_at", "2018-12-02 23:28:01.790354"], ["updated_at", "2018-12-02 23:28:01.790354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:01.795036"], ["updated_at", "2018-12-02 23:28:01.795036"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:01 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:01.839217"], ["last_sign_in_at", "2018-12-02 23:28:01.839217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:01.840465"], ["id", 1001]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"783", "user_id"=>"1001"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:34:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:02 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"783", "user_id"=>"1001"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:35:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$wk5lff21Bt5RpBMmtFyAqexEZ6Cw2R5rftyiSO0A/jqy/SLXXxKky"], ["created_at", "2018-12-02 23:28:02.632624"], ["updated_at", "2018-12-02 23:28:02.632624"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:02.637025"], ["updated_at", "2018-12-02 23:28:02.637025"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:02 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:02.643075"], ["last_sign_in_at", "2018-12-02 23:28:02.643075"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:02.644168"], ["id", 1002]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"784", "user_id"=>"1002"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:34:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:02 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"784", "user_id"=>"1002"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:35:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 784], ["user_id", 1002], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$0MURpOf8Rl2XZFzLnEPVSeqc/awvdIHU/./5hlkc48mjs7nLAayfy"], ["created_at", "2018-12-02 23:28:03.424410"], ["updated_at", "2018-12-02 23:28:03.424410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:03.428850"], ["updated_at", "2018-12-02 23:28:03.428850"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:03 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:03.434945"], ["last_sign_in_at", "2018-12-02 23:28:03.434945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:03.436059"], ["id", 1003]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"785", "user_id"=>"1003"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:34:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:03 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"785", "user_id"=>"1003"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:35:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 785], ["user_id", 1003], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$pZ2sU7kOSFIQgpDm32jMVOhnoi1P05wCzJNWZS2yuPLjqShZvnEBq"], ["created_at", "2018-12-02 23:28:04.216332"], ["updated_at", "2018-12-02 23:28:04.216332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:04.220526"], ["updated_at", "2018-12-02 23:28:04.220526"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:04 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:04.226242"], ["last_sign_in_at", "2018-12-02 23:28:04.226242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:04.227370"], ["id", 1004]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"786"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:53:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 786], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$zdh8EyC4AtVlob7W7/j5F.DWfKQCoyxHDBI/TKDzARZZHYOxMRS2C"], ["created_at", "2018-12-02 23:28:04.710148"], ["updated_at", "2018-12-02 23:28:04.710148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:04.714653"], ["updated_at", "2018-12-02 23:28:04.714653"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:28:04 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:04.720295"], ["last_sign_in_at", "2018-12-02 23:28:04.720295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:04.721390"], ["id", 1005]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"787"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:53:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$.dfCmINa/42.bw/ZVzjuZeuAWcoBaUR0hmsf/5b0Qq42HDsDN0qIe"], ["created_at", "2018-12-02 23:28:05.199058"], ["updated_at", "2018-12-02 23:28:05.199058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:05.203713"], ["updated_at", "2018-12-02 23:28:05.203713"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 788], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1006], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1006], ["room_id", 788], ["created_at", "2018-12-02 23:28:05.244808"], ["updated_at", "2018-12-02 23:28:05.244808"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/788” for 127.0.0.1 at 2018-12-02 21:28:05 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:05.250432"], ["last_sign_in_at", "2018-12-02 23:28:05.250432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:05.251745"], ["id", 1006]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"788"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 788], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '788')[0m
Rendered appointments/show.html.erb within layouts/application (15.4ms)
Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 457ms (Views: 452.6ms | ActiveRecord: 1.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$eYOvWh4NIUAp2RQfJ/KEp.zOagP49aJ/oo2CEKlR2L8syosXu9tJu"], ["created_at", "2018-12-02 23:28:05.879482"], ["updated_at", "2018-12-02 23:28:05.879482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:05.883925"], ["updated_at", "2018-12-02 23:28:05.883925"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 789], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1007], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1007], ["room_id", 789], ["created_at", "2018-12-02 23:28:05.892464"], ["updated_at", "2018-12-02 23:28:05.892464"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 789], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1007], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1007], ["room_id", 789], ["created_at", "2018-12-02 23:28:05.901634"], ["updated_at", "2018-12-02 23:28:05.901634"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:28:05 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:05.907068"], ["last_sign_in_at", "2018-12-02 23:28:05.907068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:05.908164"], ["id", 1007]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1007]] Rendered appointments/my_appointments.html.erb within layouts/application (5.9ms) Rendered layouts/_header-user.html.erb (6.7ms)
Completed 200 OK in 157ms (Views: 146.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$C4971fX1Kgbaqjr5XCOwgOkXqqD9jxKU3Dsqlv5Afi/08/UoXVVqW"], ["created_at", "2018-12-02 23:28:06.241061"], ["updated_at", "2018-12-02 23:28:06.241061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:06.248198"], ["updated_at", "2018-12-02 23:28:06.248198"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 790], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1008], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1008], ["room_id", 790], ["created_at", "2018-12-02 23:28:06.261728"], ["updated_at", "2018-12-02 23:28:06.261728"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 790], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1008], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1008], ["room_id", 790], ["created_at", "2018-12-02 23:28:06.274206"], ["updated_at", "2018-12-02 23:28:06.274206"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:28:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:06.283685"], ["last_sign_in_at", "2018-12-02 23:28:06.283685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:06.284854"], ["id", 1008]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1008]] Rendered appointments/my_appointments.html.erb within layouts/application (8.3ms) Rendered layouts/_header-user.html.erb (4.2ms)
Completed 200 OK in 93ms (Views: 91.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$kwzRzH6VW.WqutQxTSf97.Qv2EjJLPlRsYRbVUGFBJG2y20hTUN6K"], ["created_at", "2018-12-02 23:28:06.552067"], ["updated_at", "2018-12-02 23:28:06.552067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:06.557781"], ["updated_at", "2018-12-02 23:28:06.557781"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 791], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1009], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1009], ["room_id", 791], ["created_at", "2018-12-02 23:28:06.567472"], ["updated_at", "2018-12-02 23:28:06.567472"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/302” for 127.0.0.1 at 2018-12-02 21:28:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:06.573053"], ["last_sign_in_at", "2018-12-02 23:28:06.573053"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:06.574184"], ["id", 1009]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"302"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:112:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$QGcpAdPW4iPhbtp5wPI.VO8Z220UKfklsMlyVALfRV9KZjE9L0p1K"], ["created_at", "2018-12-02 23:28:07.086394"], ["updated_at", "2018-12-02 23:28:07.086394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:07.091042"], ["updated_at", "2018-12-02 23:28:07.091042"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$LRDOKqUFU1kj20Vw1ngjsu9x1.YPrLqudrM3ZiWt46HUPvibiZrRi"], ["created_at", "2018-12-02 23:28:07.254241"], ["updated_at", "2018-12-02 23:28:07.254241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1011], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1011], ["room_id", 792], ["created_at", "2018-12-02 23:28:07.262704"], ["updated_at", "2018-12-02 23:28:07.262704"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 23:28:07.266762"], ["id", 303]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1011], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1011], ["room_id", 792], ["created_at", "2018-12-02 23:28:07.275009"], ["updated_at", "2018-12-02 23:28:07.275009"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 23:28:07.279318"], ["id", 304]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 21:28:07 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:07.284324"], ["last_sign_in_at", "2018-12-02 23:28:07.284324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:07.285383"], ["id", 1010]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1011], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]] [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1011], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 792], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (15.6ms) Rendered layouts/_header-admin.html.erb (4.1ms)
Completed 200 OK in 71ms (Views: 65.4ms | ActiveRecord: 3.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$2nQWRwiRcdzBbNY/8Q5d7egjPp/XHNhifRRITrwNFnMsVzcvpRXQS"], ["created_at", "2018-12-02 23:28:07.526530"], ["updated_at", "2018-12-02 23:28:07.526530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:28:07.531066"], ["updated_at", "2018-12-02 23:28:07.531066"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$qALJQDM8BwY.VUvtA7zuluZxW8lLSMfm935tL4tipYxpx97RhNLeS"], ["created_at", "2018-12-02 23:28:07.694268"], ["updated_at", "2018-12-02 23:28:07.694268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1013], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1013], ["room_id", 793], ["created_at", "2018-12-02 23:28:07.702443"], ["updated_at", "2018-12-02 23:28:07.702443"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 23:28:07.706611"], ["id", 305]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1013], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1013], ["room_id", 793], ["created_at", "2018-12-02 23:28:07.715101"], ["updated_at", "2018-12-02 23:28:07.715101"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 23:28:07.719285"], ["id", 306]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 21:28:07 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:28:07.724506"], ["last_sign_in_at", "2018-12-02 23:28:07.724506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:28:07.725635"], ["id", 1012]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1013], ["LIMIT", 1]] [1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]] [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1013], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 793], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (17.2ms) Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 80ms (Views: 73.8ms | ActiveRecord: 3.6ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$7TsVML1QSNYElTJf1pg5supMGrz0t5moUIL7km9YKIdnuTIdjlliK"], ["created_at", "2018-12-02 23:29:18.888116"], ["updated_at", "2018-12-02 23:29:18.888116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:18.914591"], ["updated_at", "2018-12-02 23:29:18.914591"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:18 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:18.944402"], ["last_sign_in_at", "2018-12-02 23:29:18.944402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:18.945528"], ["id", 1014]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"794", "format"=>"794"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:18:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 794], ["LIMIT", 1]]
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$JuWUGM8cCRCjs23N7FexVOFpEplrjbvKtZTvbMEp8lBk4rOrrq8gC"], ["created_at", "2018-12-02 23:29:19.478373"], ["updated_at", "2018-12-02 23:29:19.478373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:19.482819"], ["updated_at", "2018-12-02 23:29:19.482819"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:19 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:19.488236"], ["last_sign_in_at", "2018-12-02 23:29:19.488236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:19.489248"], ["id", 1015]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"795", "format"=>"795"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:18:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$B0pIMmJe4Qj2oz8G2ZCA2uNvd/aoGOj65yFPYOIx9i7r8d1oZHc.2"], ["created_at", "2018-12-02 23:29:20.066885"], ["updated_at", "2018-12-02 23:29:20.066885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:20.071443"], ["updated_at", "2018-12-02 23:29:20.071443"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:20 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:20.077647"], ["last_sign_in_at", "2018-12-02 23:29:20.077647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:20.078966"], ["id", 1016]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"796", "user_id"=>"1016"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:34:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:20 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"796", "user_id"=>"1016"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:35:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$trM3UNHac37oamRbqRXdhuK6UhxJq51eIP2U2avo5ZfuOx5sPHQiq"], ["created_at", "2018-12-02 23:29:20.878162"], ["updated_at", "2018-12-02 23:29:20.878162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:20.882629"], ["updated_at", "2018-12-02 23:29:20.882629"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:20 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:20.889278"], ["last_sign_in_at", "2018-12-02 23:29:20.889278"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:20.890440"], ["id", 1017]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"797", "user_id"=>"1017"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:34:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:21 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"797", "user_id"=>"1017"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:35:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 797], ["user_id", 1017], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$5nPIIqr9Ref9HXo5UDjyuO7nq0rosO4e8F2AVVNt8XX.WCWeugq0u"], ["created_at", "2018-12-02 23:29:21.687491"], ["updated_at", "2018-12-02 23:29:21.687491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:21.691972"], ["updated_at", "2018-12-02 23:29:21.691972"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:21 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:21.698222"], ["last_sign_in_at", "2018-12-02 23:29:21.698222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:21.699399"], ["id", 1018]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"798", "user_id"=>"1018"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:34:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:22 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"798", "user_id"=>"1018"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:35:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 798], ["user_id", 1018], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$MhZyMzzqjDD8rhKdn6xZ4.PWB9B6zL8ROBpb4tiRA62Jcg3u00jy."], ["created_at", "2018-12-02 23:29:22.610970"], ["updated_at", "2018-12-02 23:29:22.610970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:22.616767"], ["updated_at", "2018-12-02 23:29:22.616767"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:22 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:22.624092"], ["last_sign_in_at", "2018-12-02 23:29:22.624092"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:22.625586"], ["id", 1019]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"799"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:53:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 799], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$LHWsHdOGKL3sEdYWMu4chOMgaSUB8Gt6m1NB0KCfmN7XraA4WiWq2"], ["created_at", "2018-12-02 23:29:23.090961"], ["updated_at", "2018-12-02 23:29:23.090961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:23.095215"], ["updated_at", "2018-12-02 23:29:23.095215"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:29:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:23.100674"], ["last_sign_in_at", "2018-12-02 23:29:23.100674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:23.101753"], ["id", 1020]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"800"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:53:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$cvLhURddj98ak2a5yUT34e10GOTfEqCCcPJYy7LIafV4ZaJJ.fm02"], ["created_at", "2018-12-02 23:29:23.558803"], ["updated_at", "2018-12-02 23:29:23.558803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:23.563008"], ["updated_at", "2018-12-02 23:29:23.563008"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 801], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1021], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1021], ["room_id", 801], ["created_at", "2018-12-02 23:29:23.603339"], ["updated_at", "2018-12-02 23:29:23.603339"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/801” for 127.0.0.1 at 2018-12-02 21:29:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:23.608962"], ["last_sign_in_at", "2018-12-02 23:29:23.608962"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:23.610063"], ["id", 1021]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"801"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 801], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '801')[0m
Rendered appointments/show.html.erb within layouts/application (15.5ms)
Rendered layouts/_header-user.html.erb (13.5ms)
Completed 200 OK in 451ms (Views: 446.4ms | ActiveRecord: 1.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$PocCmVy0esdsMYyL5.edQuJA4e9afL6hIUYWdC6ldyq3Z3xLepKBm"], ["created_at", "2018-12-02 23:29:24.236022"], ["updated_at", "2018-12-02 23:29:24.236022"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:24.241790"], ["updated_at", "2018-12-02 23:29:24.241790"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 802], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1022], ["LIMIT", 1]]
[1m[35mSQL (2.3ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1022], ["room_id", 802], ["created_at", "2018-12-02 23:29:24.257741"], ["updated_at", "2018-12-02 23:29:24.257741"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 802], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1022], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1022], ["room_id", 802], ["created_at", "2018-12-02 23:29:24.273403"], ["updated_at", "2018-12-02 23:29:24.273403"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:29:24 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:24.281364"], ["last_sign_in_at", "2018-12-02 23:29:24.281364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:24.282602"], ["id", 1022]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1022]] Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms) Rendered layouts/_header-user.html.erb (12.2ms)
Completed 200 OK in 113ms (Views: 78.3ms | ActiveRecord: 0.6ms)
[1m[35m (2.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$yF8jCEZbBcX9V3F4WiVbZO3l/I29gphMJAgNEs6uMfMk.2aY95wTy"], ["created_at", "2018-12-02 23:29:24.576003"], ["updated_at", "2018-12-02 23:29:24.576003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:24.584236"], ["updated_at", "2018-12-02 23:29:24.584236"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 803], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1023], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1023], ["room_id", 803], ["created_at", "2018-12-02 23:29:24.600008"], ["updated_at", "2018-12-02 23:29:24.600008"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 803], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1023], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1023], ["room_id", 803], ["created_at", "2018-12-02 23:29:24.627166"], ["updated_at", "2018-12-02 23:29:24.627166"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:29:24 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:24.636429"], ["last_sign_in_at", "2018-12-02 23:29:24.636429"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:24.639111"], ["id", 1023]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1023]] Rendered appointments/my_appointments.html.erb within layouts/application (8.1ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 157ms (Views: 155.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$AZnaLlbjQHPuEjgZ9VEKwOUk1Ql4BSHu4tKY5daLoCzPtogeA/QFu"], ["created_at", "2018-12-02 23:29:24.966987"], ["updated_at", "2018-12-02 23:29:24.966987"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:24.971102"], ["updated_at", "2018-12-02 23:29:24.971102"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 804], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1024], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1024], ["room_id", 804], ["created_at", "2018-12-02 23:29:24.978747"], ["updated_at", "2018-12-02 23:29:24.978747"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/312” for 127.0.0.1 at 2018-12-02 21:29:24 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:24.983501"], ["last_sign_in_at", "2018-12-02 23:29:24.983501"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:24.984407"], ["id", 1024]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"312"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:112:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$cCpPoA3dqQt0HtOP4ayYhOv7o9z.52dmB4qzb6O0rZVGTCkEkmES."], ["created_at", "2018-12-02 23:29:25.432658"], ["updated_at", "2018-12-02 23:29:25.432658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:25.440263"], ["updated_at", "2018-12-02 23:29:25.440263"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$YQzMl.vCZyenPiC.3quru.onf.aHW6GFgbaZZsx6kxYpke3Gf8J6."], ["created_at", "2018-12-02 23:29:25.605284"], ["updated_at", "2018-12-02 23:29:25.605284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 805], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1026], ["room_id", 805], ["created_at", "2018-12-02 23:29:25.613311"], ["updated_at", "2018-12-02 23:29:25.613311"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 23:29:25.617504"], ["id", 313]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 805], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1026], ["room_id", 805], ["created_at", "2018-12-02 23:29:25.626254"], ["updated_at", "2018-12-02 23:29:25.626254"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 23:29:25.631130"], ["id", 314]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 21:29:25 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:25.637224"], ["last_sign_in_at", "2018-12-02 23:29:25.637224"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:25.638503"], ["id", 1025]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 805], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1026], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 805], ["LIMIT", 1]] [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (16.2ms) Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 67ms (Views: 60.7ms | ActiveRecord: 3.8ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$k4QX61ARufFIhY/7CbNuo.YePMIrK2goZxpFHjgiMh/CiQDaOOrDC"], ["created_at", "2018-12-02 23:29:25.875170"], ["updated_at", "2018-12-02 23:29:25.875170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:29:25.879557"], ["updated_at", "2018-12-02 23:29:25.879557"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jqYf9IrbhHl48WFM.ubqWuX5fmJ/WG/krWF4Q/wpU4eK/vGR.t5UK"], ["created_at", "2018-12-02 23:29:26.043032"], ["updated_at", "2018-12-02 23:29:26.043032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 806], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1028], ["room_id", 806], ["created_at", "2018-12-02 23:29:26.051258"], ["updated_at", "2018-12-02 23:29:26.051258"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-02 23:29:26.055282"], ["id", 315]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 806], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1028], ["room_id", 806], ["created_at", "2018-12-02 23:29:26.063059"], ["updated_at", "2018-12-02 23:29:26.063059"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-02 23:29:26.067368"], ["id", 316]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 21:29:26 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:29:26.071991"], ["last_sign_in_at", "2018-12-02 23:29:26.071991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:29:26.073065"], ["id", 1027]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 806], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1028], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 806], ["LIMIT", 1]] [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (15.8ms) Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 67ms (Views: 61.1ms | ActiveRecord: 3.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sw63Lg00tndMgYewNKB1BOk1sNIEZWBGEgnE8T559khrUIRVGXBC6"], ["created_at", "2018-12-02 23:32:05.801044"], ["updated_at", "2018-12-02 23:32:05.801044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:32:05.830097"], ["updated_at", "2018-12-02 23:32:05.830097"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:32:05 -0200
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:32:05.861055"], ["last_sign_in_at", "2018-12-02 23:32:05.861055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:32:05.862384"], ["id", 1029]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"807", "format"=>"807"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 807], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$EnpokOHNafpkbruRk13F0OodCidlPg8dkTimYXe4L1y4/0eCpwDge"], ["created_at", "2018-12-02 23:32:06.386529"], ["updated_at", "2018-12-02 23:32:06.386529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:32:06.390995"], ["updated_at", "2018-12-02 23:32:06.390995"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:32:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:32:06.396869"], ["last_sign_in_at", "2018-12-02 23:32:06.396869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:32:06.397944"], ["id", 1030]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"808", "format"=>"808"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jpX1RALW19AeN5hWmzM9OukkrjHlF7.sxZIn8KN0py3b4MaINId0S"], ["created_at", "2018-12-02 23:32:06.885069"], ["updated_at", "2018-12-02 23:32:06.885069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:32:06.889560"], ["updated_at", "2018-12-02 23:32:06.889560"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:32:06 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:32:06.896180"], ["last_sign_in_at", "2018-12-02 23:32:06.896180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:32:06.897318"], ["id", 1031]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"809", "user_id"=>"1031"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:32:07 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"809", "user_id"=>"1031"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ztC3LND4y3SjE8EqnPMEy.6kP6Tn5z.Ep0ELprjZ0sQITxDqry6Ue"], ["created_at", "2018-12-02 23:32:07.692420"], ["updated_at", "2018-12-02 23:32:07.692420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:32:07.697128"], ["updated_at", "2018-12-02 23:32:07.697128"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:32:07 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:32:07.704002"], ["last_sign_in_at", "2018-12-02 23:32:07.704002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:32:07.705810"], ["id", 1032]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"810", "user_id"=>"1032"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:32:08 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"810", "user_id"=>"1032"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 810], ["user_id", 1032], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (24.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$S8j6XnMTyS1y4LKsqP0Wu.OnQYqvtKYm9UUYoacBOGlWkHAXDVFAO"], ["created_at", "2018-12-02 23:44:42.082030"], ["updated_at", "2018-12-02 23:44:42.082030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:42.107635"], ["updated_at", "2018-12-02 23:44:42.107635"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:44:42 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:42.138584"], ["last_sign_in_at", "2018-12-02 23:44:42.138584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:42.139753"], ["id", 1033]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"811"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 811], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$YfQlkfEB/SBhpj5dGM7GaONUj//vW/PDMm5COJKXgyIscfZTNjNDy"], ["created_at", "2018-12-02 23:44:42.668539"], ["updated_at", "2018-12-02 23:44:42.668539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:42.673296"], ["updated_at", "2018-12-02 23:44:42.673296"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:44:42 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:42.684877"], ["last_sign_in_at", "2018-12-02 23:44:42.684877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:42.686057"], ["id", 1034]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"812"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Rh1AY6T8QgxR9r4iWKSx7eZIxuEyAGihtZg/l.feNlDkOXGXZk5Qy"], ["created_at", "2018-12-02 23:44:43.158982"], ["updated_at", "2018-12-02 23:44:43.158982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:43.163295"], ["updated_at", "2018-12-02 23:44:43.163295"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:44:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:43.169094"], ["last_sign_in_at", "2018-12-02 23:44:43.169094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:43.170277"], ["id", 1035]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"813"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:30:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 813], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$h/TjB05iA8xXh9gGnUG7eee4s2oElDuc9D9Dq5ldY985H9BIRj3iS"], ["created_at", "2018-12-02 23:44:43.656465"], ["updated_at", "2018-12-02 23:44:43.656465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:43.661042"], ["updated_at", "2018-12-02 23:44:43.661042"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:44:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:43.667156"], ["last_sign_in_at", "2018-12-02 23:44:43.667156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:43.668368"], ["id", 1036]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"814"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 4ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:30:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$aKTrN4/BWir3TA097PgVnOC/eT0sfnXpRqczFFJxt7TbLLFf/GVZC"], ["created_at", "2018-12-02 23:44:44.144636"], ["updated_at", "2018-12-02 23:44:44.144636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:44.148823"], ["updated_at", "2018-12-02 23:44:44.148823"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 815], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1037], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1037], ["room_id", 815], ["created_at", "2018-12-02 23:44:44.190753"], ["updated_at", "2018-12-02 23:44:44.190753"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/815” for 127.0.0.1 at 2018-12-02 21:44:44 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:44.196468"], ["last_sign_in_at", "2018-12-02 23:44:44.196468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:44.197541"], ["id", 1037]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"815"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 815], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '815')[0m
Rendered appointments/show.html.erb within layouts/application (15.0ms)
Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 878ms (Views: 873.3ms | ActiveRecord: 1.5ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QpdwG9SNmsNYX2ovaeAiGe4aTpsFjKZTb7tkjd2kBAIUmA5jhP0/m"], ["created_at", "2018-12-02 23:44:45.246906"], ["updated_at", "2018-12-02 23:44:45.246906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:45.251946"], ["updated_at", "2018-12-02 23:44:45.251946"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 816], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1038], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1038], ["room_id", 816], ["created_at", "2018-12-02 23:44:45.260720"], ["updated_at", "2018-12-02 23:44:45.260720"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 816], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1038], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1038], ["room_id", 816], ["created_at", "2018-12-02 23:44:45.269545"], ["updated_at", "2018-12-02 23:44:45.269545"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:44:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:45.274688"], ["last_sign_in_at", "2018-12-02 23:44:45.274688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:45.275753"], ["id", 1038]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1038]] Rendered appointments/my_appointments.html.erb within layouts/application (5.5ms) Rendered layouts/_header-user.html.erb (3.6ms)
Completed 200 OK in 60ms (Views: 52.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jnwHhoCafOEox2Ns.xfIv.IQQcfHs5GCGS6GM/aZ5Hw9Q/IDysWoK"], ["created_at", "2018-12-02 23:44:45.506137"], ["updated_at", "2018-12-02 23:44:45.506137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:45.510289"], ["updated_at", "2018-12-02 23:44:45.510289"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 817], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1039], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1039], ["room_id", 817], ["created_at", "2018-12-02 23:44:45.518123"], ["updated_at", "2018-12-02 23:44:45.518123"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 817], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1039], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1039], ["room_id", 817], ["created_at", "2018-12-02 23:44:45.526497"], ["updated_at", "2018-12-02 23:44:45.526497"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:44:45 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:45.531263"], ["last_sign_in_at", "2018-12-02 23:44:45.531263"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:45.532217"], ["id", 1039]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1039]] Rendered appointments/my_appointments.html.erb within layouts/application (4.3ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 53ms (Views: 51.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$BnVAVrGv8zLAiTYGbgvuVeCLxzs/cye0CN3QM5ybRboUVIbxOmmdS"], ["created_at", "2018-12-02 23:44:45.752373"], ["updated_at", "2018-12-02 23:44:45.752373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:44:45.756515"], ["updated_at", "2018-12-02 23:44:45.756515"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 818], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1040], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1040], ["room_id", 818], ["created_at", "2018-12-02 23:44:45.765342"], ["updated_at", "2018-12-02 23:44:45.765342"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/322” for 127.0.0.1 at 2018-12-02 21:44:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:44:45.770298"], ["last_sign_in_at", "2018-12-02 23:44:45.770298"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:44:45.771548"], ["id", 1040]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"322"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:89:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$5EfxwuXRyhVtaeOfLHUkf.nru2MjhymNcF/yfBFBYE2GumHdrGc76"], ["created_at", "2018-12-02 23:47:40.274697"], ["updated_at", "2018-12-02 23:47:40.274697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:40.301010"], ["updated_at", "2018-12-02 23:47:40.301010"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:47:40 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:40.335691"], ["last_sign_in_at", "2018-12-02 23:47:40.335691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:40.336900"], ["id", 1041]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"819"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 819], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$G4Ews50ER.4GqPXjLi4bLOzcxE9Ldo0hrFaE4VNwK1a4yO72bc6ai"], ["created_at", "2018-12-02 23:47:40.883148"], ["updated_at", "2018-12-02 23:47:40.883148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:40.887856"], ["updated_at", "2018-12-02 23:47:40.887856"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:47:40 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:40.899217"], ["last_sign_in_at", "2018-12-02 23:47:40.899217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:40.900400"], ["id", 1042]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"820"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$nBcBXVtUGtxnxxLJh4vnUeny78TI7z8iQjdqhBjSCftp8kqvHis6W"], ["created_at", "2018-12-02 23:47:41.381279"], ["updated_at", "2018-12-02 23:47:41.381279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:41.385618"], ["updated_at", "2018-12-02 23:47:41.385618"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:47:41 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:41.391125"], ["last_sign_in_at", "2018-12-02 23:47:41.391125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:41.392204"], ["id", 1043]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"821"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:30:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 821], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ZQk0tOb/tuC6twPFaCSWiuCSbKj6AnGW.GEbhkSgmZe3wkLBMI516"], ["created_at", "2018-12-02 23:47:41.870179"], ["updated_at", "2018-12-02 23:47:41.870179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:41.874681"], ["updated_at", "2018-12-02 23:47:41.874681"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:47:41 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:41.880258"], ["last_sign_in_at", "2018-12-02 23:47:41.880258"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:41.881330"], ["id", 1044]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"822"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:30:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$TufmXbHnHupLE3MPf5Nak.BY0MmPcoGCDqf.dImi7nRJ0B3COSrU."], ["created_at", "2018-12-02 23:47:42.374540"], ["updated_at", "2018-12-02 23:47:42.374540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:42.379141"], ["updated_at", "2018-12-02 23:47:42.379141"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 823], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1045], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1045], ["room_id", 823], ["created_at", "2018-12-02 23:47:42.451290"], ["updated_at", "2018-12-02 23:47:42.451290"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/823” for 127.0.0.1 at 2018-12-02 21:47:42 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:42.458823"], ["last_sign_in_at", "2018-12-02 23:47:42.458823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:42.460898"], ["id", 1045]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"823"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 823], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '823')[0m
Rendered appointments/show.html.erb within layouts/application (27.4ms)
Rendered layouts/_header-user.html.erb (9.2ms)
Completed 200 OK in 401ms (Views: 395.7ms | ActiveRecord: 1.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$bfpHB3QthRqikAZXjVwAdeScZi3/9w9Uy4ZJO6bWGSTr1v75YL/Dy"], ["created_at", "2018-12-02 23:47:43.045306"], ["updated_at", "2018-12-02 23:47:43.045306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:43.052231"], ["updated_at", "2018-12-02 23:47:43.052231"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 824], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1046], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1046], ["room_id", 824], ["created_at", "2018-12-02 23:47:43.066552"], ["updated_at", "2018-12-02 23:47:43.066552"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 824], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1046], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1046], ["room_id", 824], ["created_at", "2018-12-02 23:47:43.080926"], ["updated_at", "2018-12-02 23:47:43.080926"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:47:43 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:43.088574"], ["last_sign_in_at", "2018-12-02 23:47:43.088574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:43.091051"], ["id", 1046]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1046]] Rendered appointments/my_appointments.html.erb within layouts/application (7.6ms) Rendered layouts/_header-user.html.erb (6.5ms)
Completed 200 OK in 147ms (Views: 124.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$INA6OF5h4JVD/Cv/R1eLhOFxh5TrdQlSb1LsSbWCf9naT2Rq1YsQm"], ["created_at", "2018-12-02 23:47:43.411216"], ["updated_at", "2018-12-02 23:47:43.411216"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:43.416183"], ["updated_at", "2018-12-02 23:47:43.416183"], ["tipo_sala", "palestras"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 825], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1047], ["LIMIT", 1]]
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1047], ["room_id", 825], ["created_at", "2018-12-02 23:47:43.425043"], ["updated_at", "2018-12-02 23:47:43.425043"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 825], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1047], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1047], ["room_id", 825], ["created_at", "2018-12-02 23:47:43.437668"], ["updated_at", "2018-12-02 23:47:43.437668"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:47:43 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:43.444666"], ["last_sign_in_at", "2018-12-02 23:47:43.444666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:43.446027"], ["id", 1047]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1047]] Rendered appointments/my_appointments.html.erb within layouts/application (5.0ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 70ms (Views: 68.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$z3weA0NSKxijFFsaH9eXoObCL30PLj.eVI8A4q5XRcrkH9GLR0f9G"], ["created_at", "2018-12-02 23:47:43.691441"], ["updated_at", "2018-12-02 23:47:43.691441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:47:43.695672"], ["updated_at", "2018-12-02 23:47:43.695672"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 826], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1048], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1048], ["room_id", 826], ["created_at", "2018-12-02 23:47:43.703722"], ["updated_at", "2018-12-02 23:47:43.703722"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/328” for 127.0.0.1 at 2018-12-02 21:47:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:47:43.708573"], ["last_sign_in_at", "2018-12-02 23:47:43.708573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:47:43.709573"], ["id", 1048]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"328"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:89:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Kb2M7dhhVLSFSS/V7lkvY.aW4zJ5FVRVtFRFnm8OkV.DT1yVP0FWS"], ["created_at", "2018-12-02 23:53:22.287553"], ["updated_at", "2018-12-02 23:53:22.287553"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:22.314986"], ["updated_at", "2018-12-02 23:53:22.314986"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:22 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:22.346767"], ["last_sign_in_at", "2018-12-02 23:53:22.346767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:22.348103"], ["id", 1049]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"827"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 827], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$lpOU5yNUbZOj881uVeEzUeC48Q/etCTpD3ZGpGz58JS1r9gseuSge"], ["created_at", "2018-12-02 23:53:22.891703"], ["updated_at", "2018-12-02 23:53:22.891703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:22.896024"], ["updated_at", "2018-12-02 23:53:22.896024"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:22 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:22.901800"], ["last_sign_in_at", "2018-12-02 23:53:22.901800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:22.902977"], ["id", 1050]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"828"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$knU/O1saMTTj6lzgFHvE8.08xppYXH2sSyREkz4Q14YhM5X/chPKG"], ["created_at", "2018-12-02 23:53:23.398035"], ["updated_at", "2018-12-02 23:53:23.398035"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:23.402967"], ["updated_at", "2018-12-02 23:53:23.402967"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:23.410554"], ["last_sign_in_at", "2018-12-02 23:53:23.410554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:23.412019"], ["id", 1051]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"829", "user_id"=>"1051"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:23 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"829", "user_id"=>"1051"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$KwIkvOV8tXZ9GPeCfCn8h.n6PMCT/5If6yW24lztBBkJYazqVHzGu"], ["created_at", "2018-12-02 23:53:24.284963"], ["updated_at", "2018-12-02 23:53:24.284963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:24.289398"], ["updated_at", "2018-12-02 23:53:24.289398"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:24 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:24.301341"], ["last_sign_in_at", "2018-12-02 23:53:24.301341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:24.302962"], ["id", 1052]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"830", "user_id"=>"1052"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:24 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"830", "user_id"=>"1052"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 830], ["user_id", 1052], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Q/rxdcohABvVU0Zo2MQzje7GqKycG8i4F6LYmY/DbQSSWLLEI03xC"], ["created_at", "2018-12-02 23:53:25.309700"], ["updated_at", "2018-12-02 23:53:25.309700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:25.314594"], ["updated_at", "2018-12-02 23:53:25.314594"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:25 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:25.321250"], ["last_sign_in_at", "2018-12-02 23:53:25.321250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:25.322338"], ["id", 1053]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"831", "user_id"=>"1053"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:25 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"831", "user_id"=>"1053"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 831], ["user_id", 1053], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$0vru5BuxOq63uEIMF1qJVOHMDOgyvqvRu1Ue3FCGdLrf5zv4E23LG"], ["created_at", "2018-12-02 23:53:26.152654"], ["updated_at", "2018-12-02 23:53:26.152654"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:26.159535"], ["updated_at", "2018-12-02 23:53:26.159535"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:26 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:26.167739"], ["last_sign_in_at", "2018-12-02 23:53:26.167739"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:26.169715"], ["id", 1054]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"832"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 832], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$s2b0vupzPQN6B7EFa8w7aOtOAxiSD13DM0mc8yi8EjAXZ8bTtj7yG"], ["created_at", "2018-12-02 23:53:26.670490"], ["updated_at", "2018-12-02 23:53:26.670490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:26.674737"], ["updated_at", "2018-12-02 23:53:26.674737"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:53:26 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:26.679769"], ["last_sign_in_at", "2018-12-02 23:53:26.679769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:26.680767"], ["id", 1055]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"833"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$gOw0RJjONeWoFXW1rR5uv.eyfCA8ge2FUEbNJJ/i0peBS2f5V/gRm"], ["created_at", "2018-12-02 23:53:27.170396"], ["updated_at", "2018-12-02 23:53:27.170396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:27.176041"], ["updated_at", "2018-12-02 23:53:27.176041"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 834], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1056], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1056], ["room_id", 834], ["created_at", "2018-12-02 23:53:27.227758"], ["updated_at", "2018-12-02 23:53:27.227758"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/834” for 127.0.0.1 at 2018-12-02 21:53:27 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:27.234216"], ["last_sign_in_at", "2018-12-02 23:53:27.234216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:27.235430"], ["id", 1056]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"834"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 834], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '834')[0m
Rendered appointments/show.html.erb within layouts/application (16.7ms)
Rendered layouts/_header-user.html.erb (10.3ms)
Completed 200 OK in 479ms (Views: 473.4ms | ActiveRecord: 1.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$BYuVzr9aWQGpS7LeUjQ1/Od/zA8mwg6JV/umb5raz9DZ5YoySQAga"], ["created_at", "2018-12-02 23:53:27.895109"], ["updated_at", "2018-12-02 23:53:27.895109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:27.901381"], ["updated_at", "2018-12-02 23:53:27.901381"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 835], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1057], ["room_id", 835], ["created_at", "2018-12-02 23:53:27.922064"], ["updated_at", "2018-12-02 23:53:27.922064"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 835], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1057], ["room_id", 835], ["created_at", "2018-12-02 23:53:27.934074"], ["updated_at", "2018-12-02 23:53:27.934074"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:53:27 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:27.943603"], ["last_sign_in_at", "2018-12-02 23:53:27.943603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:27.945233"], ["id", 1057]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1057]] Rendered appointments/my_appointments.html.erb within layouts/application (9.8ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 141ms (Views: 124.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QyPnpKdE5uITbfKsls.oR.E1XwIZyT9doOieFfVEYsP2zcUtbkXCC"], ["created_at", "2018-12-02 23:53:28.259790"], ["updated_at", "2018-12-02 23:53:28.259790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:28.264002"], ["updated_at", "2018-12-02 23:53:28.264002"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 836], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1058], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1058], ["room_id", 836], ["created_at", "2018-12-02 23:53:28.272478"], ["updated_at", "2018-12-02 23:53:28.272478"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 836], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1058], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1058], ["room_id", 836], ["created_at", "2018-12-02 23:53:28.281357"], ["updated_at", "2018-12-02 23:53:28.281357"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:53:28 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:28.286296"], ["last_sign_in_at", "2018-12-02 23:53:28.286296"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:28.287365"], ["id", 1058]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1058]] Rendered appointments/my_appointments.html.erb within layouts/application (4.5ms) Rendered layouts/_header-user.html.erb (3.3ms)
Completed 200 OK in 54ms (Views: 52.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$3kH68uz8Z6Qh56H0xy2kbeevZZv1i1OWbxj1hy.WS/7FSjSSs23UK"], ["created_at", "2018-12-02 23:53:28.516898"], ["updated_at", "2018-12-02 23:53:28.516898"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:53:28.522159"], ["updated_at", "2018-12-02 23:53:28.522159"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 837], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1059], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1059], ["room_id", 837], ["created_at", "2018-12-02 23:53:28.532318"], ["updated_at", "2018-12-02 23:53:28.532318"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/334” for 127.0.0.1 at 2018-12-02 21:53:28 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:53:28.538857"], ["last_sign_in_at", "2018-12-02 23:53:28.538857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:53:28.540187"], ["id", 1059]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"334"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$IVR4RNVI.lUBXBgs5n.snOL1wjEpPWyV5XpATzDa5gW/XyI08aQfq"], ["created_at", "2018-12-02 23:56:57.258380"], ["updated_at", "2018-12-02 23:56:57.258380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:56:57.284408"], ["updated_at", "2018-12-02 23:56:57.284408"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:56:57 -0200
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:56:57.315041"], ["last_sign_in_at", "2018-12-02 23:56:57.315041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:56:57.316146"], ["id", 1060]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"838"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 838], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$njrVO5.cRsN5IkNUqthxXe8DP.x8CIff.jaqTeu9KUG1SXi4ptQxG"], ["created_at", "2018-12-02 23:56:57.853925"], ["updated_at", "2018-12-02 23:56:57.853925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:56:57.858344"], ["updated_at", "2018-12-02 23:56:57.858344"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:56:57 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:56:57.864232"], ["last_sign_in_at", "2018-12-02 23:56:57.864232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:56:57.865386"], ["id", 1061]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"839"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OAh6mBmThWiaBVDBhSqLhO1OR5iuJHss4WKSEGFn8FsBE5Kb8G/9i"], ["created_at", "2018-12-02 23:56:58.345531"], ["updated_at", "2018-12-02 23:56:58.345531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:56:58.349756"], ["updated_at", "2018-12-02 23:56:58.349756"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:56:58 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:56:58.356182"], ["last_sign_in_at", "2018-12-02 23:56:58.356182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:56:58.357353"], ["id", 1062]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"840", "user_id"=>"1062"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:56:58 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"840", "user_id"=>"1062"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$GtExd0enskD2cC5fo.FhV.I0xUzJhAGD0XQ5U7uDCTIqJO8Q1gdSG"], ["created_at", "2018-12-02 23:56:59.155143"], ["updated_at", "2018-12-02 23:56:59.155143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:56:59.159567"], ["updated_at", "2018-12-02 23:56:59.159567"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:56:59 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:56:59.165706"], ["last_sign_in_at", "2018-12-02 23:56:59.165706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:56:59.166960"], ["id", 1063]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"841", "user_id"=>"1063"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:56:59 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"841", "user_id"=>"1063"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 841], ["user_id", 1063], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$DHSAuOYsFKjG7BZpRPDZvOeUpQjJ1QTXofNqXBh1ZhboqT6vqdEb6"], ["created_at", "2018-12-02 23:57:00.048748"], ["updated_at", "2018-12-02 23:57:00.048748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:00.053433"], ["updated_at", "2018-12-02 23:57:00.053433"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:57:00 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:00.060778"], ["last_sign_in_at", "2018-12-02 23:57:00.060778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:00.061989"], ["id", 1064]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"842", "user_id"=>"1064"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:57:00 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"842", "user_id"=>"1064"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 842], ["user_id", 1064], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$LwA3OuP0KopWNl.acem9iO.Zprdd6dFFYuoFNK9e/VhMplRGQ5U8a"], ["created_at", "2018-12-02 23:57:00.881944"], ["updated_at", "2018-12-02 23:57:00.881944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:00.886492"], ["updated_at", "2018-12-02 23:57:00.886492"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:57:00 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:00.893856"], ["last_sign_in_at", "2018-12-02 23:57:00.893856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:00.895429"], ["id", 1065]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"843"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 843], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$tErBwOIplPyyr09aDjLOQeYvjZLqC6u9Yo1/hkmzqeaYJmetsiirq"], ["created_at", "2018-12-02 23:57:01.388971"], ["updated_at", "2018-12-02 23:57:01.388971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:01.393407"], ["updated_at", "2018-12-02 23:57:01.393407"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 21:57:01 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:01.399314"], ["last_sign_in_at", "2018-12-02 23:57:01.399314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:01.400489"], ["id", 1066]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"844"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$oFoF2vpVagGbQuqKYa.s8.S2vndt.YmmMtLR14KCnj0JyNXUbd8I6"], ["created_at", "2018-12-02 23:57:01.893536"], ["updated_at", "2018-12-02 23:57:01.893536"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:01.897560"], ["updated_at", "2018-12-02 23:57:01.897560"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 845], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1067], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1067], ["room_id", 845], ["created_at", "2018-12-02 23:57:01.938963"], ["updated_at", "2018-12-02 23:57:01.938963"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/845” for 127.0.0.1 at 2018-12-02 21:57:01 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:01.944502"], ["last_sign_in_at", "2018-12-02 23:57:01.944502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:01.945666"], ["id", 1067]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"845"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 845], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '845')[0m
Rendered appointments/show.html.erb within layouts/application (16.0ms)
Rendered layouts/_header-user.html.erb (9.7ms)
Completed 200 OK in 470ms (Views: 464.7ms | ActiveRecord: 1.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$jbUSV62/8swKK3NPm2gKMOgpfqziOXnQ9tmraikUF89xwyfyYBOhO"], ["created_at", "2018-12-02 23:57:02.596568"], ["updated_at", "2018-12-02 23:57:02.596568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:02.605999"], ["updated_at", "2018-12-02 23:57:02.605999"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 846], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1068], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1068], ["room_id", 846], ["created_at", "2018-12-02 23:57:02.631341"], ["updated_at", "2018-12-02 23:57:02.631341"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 846], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1068], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1068], ["room_id", 846], ["created_at", "2018-12-02 23:57:02.646746"], ["updated_at", "2018-12-02 23:57:02.646746"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:57:02 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:02.654809"], ["last_sign_in_at", "2018-12-02 23:57:02.654809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:02.657001"], ["id", 1068]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1068]] Rendered appointments/my_appointments.html.erb within layouts/application (9.6ms) Rendered layouts/_header-user.html.erb (4.4ms)
Completed 200 OK in 143ms (Views: 124.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$hZ9HaJXKhft462qXVXscpe582KGsWvVNsFNPzqI74X5./4B5giggW"], ["created_at", "2018-12-02 23:57:02.973235"], ["updated_at", "2018-12-02 23:57:02.973235"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:02.978742"], ["updated_at", "2018-12-02 23:57:02.978742"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 847], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1069], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1069], ["room_id", 847], ["created_at", "2018-12-02 23:57:02.992702"], ["updated_at", "2018-12-02 23:57:02.992702"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 847], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1069], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1069], ["room_id", 847], ["created_at", "2018-12-02 23:57:03.003130"], ["updated_at", "2018-12-02 23:57:03.003130"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 21:57:03 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:03.008625"], ["last_sign_in_at", "2018-12-02 23:57:03.008625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:03.009530"], ["id", 1069]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1069]] Rendered appointments/my_appointments.html.erb within layouts/application (5.5ms) Rendered layouts/_header-user.html.erb (4.1ms)
Completed 200 OK in 80ms (Views: 77.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$5BPiDwMYdKF./AcK/7avMOdqTQqTOeK1w9/N8edSp.Sgz5idAx1s."], ["created_at", "2018-12-02 23:57:03.262938"], ["updated_at", "2018-12-02 23:57:03.262938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-02 23:57:03.268702"], ["updated_at", "2018-12-02 23:57:03.268702"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 848], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1070], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1070], ["room_id", 848], ["created_at", "2018-12-02 23:57:03.278521"], ["updated_at", "2018-12-02 23:57:03.278521"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/340” for 127.0.0.1 at 2018-12-02 21:57:03 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-02 23:57:03.284549"], ["last_sign_in_at", "2018-12-02 23:57:03.284549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-02 23:57:03.285702"], ["id", 1070]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"340"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$5PsPhj7hNLhBwcdKowkKse4Jkemfc1q3ELr9UCSEArWkgWUHY437S"], ["created_at", "2018-12-03 00:04:03.860156"], ["updated_at", "2018-12-03 00:04:03.860156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"1071"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["reset_digest", "xFnZwlt-MMheSm35_jbFUQ"], ["updated_at", "2018-12-03 00:04:03.881124"], ["id", 1071]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3[0m [["updated_at", "2018-12-03 00:04:03.886992"], ["reset_sent_at", "2018-12-03 00:04:03.885500"], ["id", 1071]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.7ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)
UserMailer#password_reset: processed outbound mail in 379.5ms Sent mail to teste@unb.com.br (60640.0ms) Date: Sun, 02 Dec 2018 22:04:04 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0472f443d2b_2e1fa50f14944d1@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;
boundary="--==_mimepart_5c0472f441001_2e1fa50f14943c6"; charset=UTF-8
Content-Transfer-Encoding: 7bit
—-==_mimepart_5c0472f441001_2e1fa50f14943c6 Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Para recadastrar sua senha clique no link abaixo:
localhost:3000/password_resets/xFnZwlt-MMheSm35_jbFUQ/edit?email=3D= teste%40unb.com.br
Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.
—-==_mimepart_5c0472f441001_2e1fa50f14943c6 Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html> <html>
<head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8“ />
<style>
/* Email styles need to be inline */
</style>
</head>
<body>
<h1>Recadastramento de Senha</h1>
<p>Para recadastrar sua senha clique no link abaixo:</p>
<a href=3D“localhost:3000/password_resets/xFnZwlt-MMheSm35_jbFUQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>
<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>
</body>
</html>
—-==_mimepart_5c0472f441001_2e1fa50f14943c6–
Completed 500 Internal Server Error in 61039ms (ActiveRecord: 4.0ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$h6itHQMMmTYNIVjBBBwV4OIXrdZpDuz4M1mxpqdX483JEwgoyTZzu"], ["created_at", "2018-12-03 00:05:05.082087"], ["updated_at", "2018-12-03 00:05:05.082087"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)
UserMailer#password_reset: processed outbound mail in 11.4ms
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$A9PfTk5pBlswKrpWH87TSeXVpEquBSmBUEYYbjDgho2r3Gw2d0sG."], ["created_at", "2018-12-03 00:05:05.263413"], ["updated_at", "2018-12-03 00:05:05.263413"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1073"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["encrypted_password", "$2a$11$c/iISq8Hds3/jepYbbzYYeDu92x0ujxWLQJblOAfYl5yXaT3wt.UK"], ["updated_at", "2018-12-03 00:05:05.429919"], ["id", 1073]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to test.host/login Completed 302 Found in 166ms (ActiveRecord: 2.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$crp.KVL8RTxlExkGQIyeNeqXlBwBYkDZVbLXmlRMo/4Fzfnifjrr2"], ["created_at", "2018-12-03 00:05:05.601272"], ["updated_at", "2018-12-03 00:05:05.601272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"1074"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$I4uKDUZsT2syisncGyFj7OPagD0.2IOu0sfeduHn3m9zyUIPpUF6W"], ["created_at", "2018-12-03 00:05:05.778724"], ["updated_at", "2018-12-03 00:05:05.778724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1075"}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.6ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 197ms (Views: 6.2ms | ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$wUj804vjVdW.8XLN4zz/tuKpiknU.5QTk/kBy.u.UKYaJgSBapYWi"], ["created_at", "2018-12-03 00:05:06.145306"], ["updated_at", "2018-12-03 00:05:06.145306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1076"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 166ms (Views: 3.9ms | ActiveRecord: 1.2ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$bTB6a6C6Ia8X7YP9Rok/YeVqXM8IEOhOv2Obk2e8CXnGWrp.YylYq"], ["created_at", "2018-12-03 00:05:06.486517"], ["updated_at", "2018-12-03 00:05:06.486517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1077"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$/PMzt5QeVJ..lTXTM68N1OT2T3ZWqdHhnYSXWnKtxKbBOcy4iVIfm"], ["created_at", "2018-12-03 00:05:06.666898"], ["updated_at", "2018-12-03 00:05:06.666898"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)
UserMailer#password_reset: processed outbound mail in 11.8ms
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$FEAf8B0PFjEtVxpZkvCDgu8tArJmIw6hxWTIag72Oovt77fHGD7lq"], ["created_at", "2018-12-03 00:05:06.846906"], ["updated_at", "2018-12-03 00:05:06.846906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)
UserMailer#password_reset: processed outbound mail in 11.1ms
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$j/ny5dUN27eFVxdHi0mf8.nzlwn1xUvfyT6X2Z3zkIVytS58XzCdO"], ["created_at", "2018-12-03 00:05:07.114242"], ["updated_at", "2018-12-03 00:05:07.114242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:07.118485"], ["updated_at", "2018-12-03 00:05:07.118485"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:07 -0200
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:07.137563"], ["last_sign_in_at", "2018-12-03 00:05:07.137563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:07.138974"], ["id", 1080]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"849"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 849], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$I3eZnWqhQbPlzuGpe.KKIeInt0n2paMX2xWi8iiKW0gPXnWIRqree"], ["created_at", "2018-12-03 00:05:07.992477"], ["updated_at", "2018-12-03 00:05:07.992477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:07.996337"], ["updated_at", "2018-12-03 00:05:07.996337"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:08 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:08.001651"], ["last_sign_in_at", "2018-12-03 00:05:08.001651"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:08.002682"], ["id", 1081]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"850"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Ugl7fRv3Z1K9pvkL9I4Lae3LXwdQ0BYV7Latrg3jfSe5s5SAhbP7i"], ["created_at", "2018-12-03 00:05:08.464421"], ["updated_at", "2018-12-03 00:05:08.464421"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:08.468583"], ["updated_at", "2018-12-03 00:05:08.468583"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:08 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:08.475214"], ["last_sign_in_at", "2018-12-03 00:05:08.475214"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:08.476212"], ["id", 1082]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"851", "user_id"=>"1082"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:08 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"851", "user_id"=>"1082"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OGRjVLb8ldLurTIxH1uWKue2h/ORu/Vjv4r5As6QFpFGAk3sFh7Wa"], ["created_at", "2018-12-03 00:05:09.252319"], ["updated_at", "2018-12-03 00:05:09.252319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:09.256472"], ["updated_at", "2018-12-03 00:05:09.256472"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:09 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:09.263072"], ["last_sign_in_at", "2018-12-03 00:05:09.263072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:09.264184"], ["id", 1083]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"852", "user_id"=>"1083"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:09 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"852", "user_id"=>"1083"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 852], ["user_id", 1083], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$cBCtWdI4VrtRml9.fAzAoO5Y7xch4TvFgbtK0r1Px7sh4PIvm8Zj6"], ["created_at", "2018-12-03 00:05:10.156646"], ["updated_at", "2018-12-03 00:05:10.156646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:10.161111"], ["updated_at", "2018-12-03 00:05:10.161111"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:10 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:10.168345"], ["last_sign_in_at", "2018-12-03 00:05:10.168345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:10.169478"], ["id", 1084]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"853", "user_id"=>"1084"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:10 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"853", "user_id"=>"1084"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 853], ["user_id", 1084], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$PGymgZJRnni1SuyxDoLCtequCqPxRwQzGWkfZecT7XTn5PQrjTx9W"], ["created_at", "2018-12-03 00:05:10.977345"], ["updated_at", "2018-12-03 00:05:10.977345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:10.981606"], ["updated_at", "2018-12-03 00:05:10.981606"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:10 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:10.987480"], ["last_sign_in_at", "2018-12-03 00:05:10.987480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:10.988571"], ["id", 1085]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"854"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 854], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sE6jMe/LCJQRf7hHEY4sW.FERK2x8exAnG0iGnUR8K.ImTOgL2jG."], ["created_at", "2018-12-03 00:05:11.451748"], ["updated_at", "2018-12-03 00:05:11.451748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:11.456381"], ["updated_at", "2018-12-03 00:05:11.456381"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:05:11 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:11.462291"], ["last_sign_in_at", "2018-12-03 00:05:11.462291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:11.463498"], ["id", 1086]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"855"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$k09wKVAQZSy5QH2o0Xu/Vup8VfUqLbGPCGFgQG83lBZV8y0fajSi2"], ["created_at", "2018-12-03 00:05:11.969264"], ["updated_at", "2018-12-03 00:05:11.969264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:11.974819"], ["updated_at", "2018-12-03 00:05:11.974819"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 856], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1087], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1087], ["room_id", 856], ["created_at", "2018-12-03 00:05:11.993584"], ["updated_at", "2018-12-03 00:05:11.993584"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/856” for 127.0.0.1 at 2018-12-02 22:05:11 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:11.998718"], ["last_sign_in_at", "2018-12-03 00:05:11.998718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:11.999760"], ["id", 1087]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"856"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 856], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '856')[0m
Rendered appointments/show.html.erb within layouts/application (14.4ms)
Rendered layouts/_header-user.html.erb (4.3ms)
Completed 200 OK in 969ms (Views: 965.3ms | ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$lgM.0zAcE5KcRgkBNkpE4OGcZQO.sxg2xLbQ8yxsBiB5c4n4BDq.S"], ["created_at", "2018-12-03 00:05:13.141769"], ["updated_at", "2018-12-03 00:05:13.141769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:13.146407"], ["updated_at", "2018-12-03 00:05:13.146407"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 857], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1088], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1088], ["room_id", 857], ["created_at", "2018-12-03 00:05:13.155109"], ["updated_at", "2018-12-03 00:05:13.155109"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 857], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1088], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1088], ["room_id", 857], ["created_at", "2018-12-03 00:05:13.164324"], ["updated_at", "2018-12-03 00:05:13.164324"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 22:05:13 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:13.169813"], ["last_sign_in_at", "2018-12-03 00:05:13.169813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:13.171020"], ["id", 1088]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1088]] Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms) Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 101ms (Views: 90.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$yLgRW9MjEd3OFJMHJenEqOK2cVO9EhYUyf8G8u4r8zTQxzZMFM6ty"], ["created_at", "2018-12-03 00:05:13.441326"], ["updated_at", "2018-12-03 00:05:13.441326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:13.447323"], ["updated_at", "2018-12-03 00:05:13.447323"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 858], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1089], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1089], ["room_id", 858], ["created_at", "2018-12-03 00:05:13.455530"], ["updated_at", "2018-12-03 00:05:13.455530"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 858], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1089], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1089], ["room_id", 858], ["created_at", "2018-12-03 00:05:13.464196"], ["updated_at", "2018-12-03 00:05:13.464196"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 22:05:13 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:13.469165"], ["last_sign_in_at", "2018-12-03 00:05:13.469165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:13.470170"], ["id", 1089]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1089]] Rendered appointments/my_appointments.html.erb within layouts/application (4.9ms) Rendered layouts/_header-user.html.erb (4.0ms)
Completed 200 OK in 61ms (Views: 58.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ljiQo2yYmQ9WpCQu.mjN7.pxB/x/ZI4786p/XjMfFcA/DnMiHhMLC"], ["created_at", "2018-12-03 00:05:13.699280"], ["updated_at", "2018-12-03 00:05:13.699280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:13.705530"], ["updated_at", "2018-12-03 00:05:13.705530"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 859], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1090], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1090], ["room_id", 859], ["created_at", "2018-12-03 00:05:13.716300"], ["updated_at", "2018-12-03 00:05:13.716300"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/346” for 127.0.0.1 at 2018-12-02 22:05:13 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:13.721538"], ["last_sign_in_at", "2018-12-03 00:05:13.721538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:13.722757"], ["id", 1090]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"346"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$5nbXjbyoEmRmbV6Aqmbj0uICVY7JQk9bUQILoauev79F2NOO760Z2"], ["created_at", "2018-12-03 00:05:14.285390"], ["updated_at", "2018-12-03 00:05:14.285390"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:14.290915"], ["updated_at", "2018-12-03 00:05:14.290915"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$HcsWnzXglSAWwud9RnxtKuVEyAXOswjxqo3qpNKv3o2dUKu1crAmW"], ["created_at", "2018-12-03 00:05:14.456203"], ["updated_at", "2018-12-03 00:05:14.456203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1092], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1092], ["room_id", 860], ["created_at", "2018-12-03 00:05:14.465854"], ["updated_at", "2018-12-03 00:05:14.465854"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-03 00:05:14.470775"], ["id", 347]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1092], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1092], ["room_id", 860], ["created_at", "2018-12-03 00:05:14.480673"], ["updated_at", "2018-12-03 00:05:14.480673"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-03 00:05:14.485441"], ["id", 348]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 22:05:14 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:14.491031"], ["last_sign_in_at", "2018-12-03 00:05:14.491031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:14.492148"], ["id", 1091]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (1.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1092], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]] [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1092], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 860], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (19.6ms) Rendered layouts/_header-admin.html.erb (4.7ms)
Completed 200 OK in 92ms (Views: 84.2ms | ActiveRecord: 3.8ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$IsucmC.DU3/ZmZfJH.dm8O2/kfG3TzD1vqH1z9wEt7.tIgXIh7S9C"], ["created_at", "2018-12-03 00:05:14.755939"], ["updated_at", "2018-12-03 00:05:14.755939"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:14.761237"], ["updated_at", "2018-12-03 00:05:14.761237"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$dvIm7kNjj2l1WCpUEt6lh.ZXNU.VuLJyqW8PigrnQ.eUjVn1mGwj2"], ["created_at", "2018-12-03 00:05:14.934594"], ["updated_at", "2018-12-03 00:05:14.934594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1094], ["room_id", 861], ["created_at", "2018-12-03 00:05:14.943909"], ["updated_at", "2018-12-03 00:05:14.943909"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-11-26 00:00:00"], ["updated_at", "2018-12-03 00:05:14.949476"], ["id", 349]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1094], ["room_id", 861], ["created_at", "2018-12-03 00:05:14.959618"], ["updated_at", "2018-12-03 00:05:14.959618"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-02 00:00:00"], ["updated_at", "2018-12-03 00:05:14.964906"], ["id", 350]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-02 22:05:14 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:14.970325"], ["last_sign_in_at", "2018-12-03 00:05:14.970325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:14.971493"], ["id", 1093]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-11-26' AND '2018-12-02')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 861], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (16.6ms) Rendered layouts/_header-admin.html.erb (4.5ms)
Completed 200 OK in 86ms (Views: 79.4ms | ActiveRecord: 2.9ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$vZ27JKYUAF86jaj8FFOcMuQzoG07UE7PJKoIHVqORlqBnQAb18Ruu"], ["created_at", "2018-12-03 00:05:15.247280"], ["updated_at", "2018-12-03 00:05:15.247280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 22:05:15 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:15.252991"], ["last_sign_in_at", "2018-12-03 00:05:15.252991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:15.253985"], ["id", 1095]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (14.8ms) Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 105ms (Views: 103.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$rkovZNBMKp5I05KbX6c11OPtT3yPMSe7i7lpBXD8RXmYELFUIOL62"], ["created_at", "2018-12-03 00:05:15.532044"], ["updated_at", "2018-12-03 00:05:15.532044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 22:05:15 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:15.537466"], ["last_sign_in_at", "2018-12-03 00:05:15.537466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:15.538478"], ["id", 1096]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$XLI170DTMV.fQsCUPENkOe/bucbK2g6cCmS8LSDIdvoIQWVianMmm"], ["created_at", "2018-12-03 00:05:15.713463"], ["updated_at", "2018-12-03 00:05:15.713463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 22:05:15 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:15.718484"], ["last_sign_in_at", "2018-12-03 00:05:15.718484"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:15.719442"], ["id", 1097]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (6.6ms) Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 242ms (Views: 54.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Zz8IzWEXlLaR21dy3b/j5OMMIZuXiyi02hOv0ZfHu0y7rOWudjDmi"], ["created_at", "2018-12-03 00:05:16.132351"], ["updated_at", "2018-12-03 00:05:16.132351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 22:05:16 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:16.137545"], ["last_sign_in_at", "2018-12-03 00:05:16.137545"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:16.138678"], ["id", 1098]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (7.0ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 60ms (Views: 58.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 22:05:16 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Zct4gpOiubIvOExpW06xaeHjRzmHi1k7NLEO71azigodS6WOwOS.K"], ["created_at", "2018-12-03 00:05:16.389782"], ["updated_at", "2018-12-03 00:05:16.389782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:16.395236"], ["updated_at", "2018-12-03 00:05:16.395236"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/862” for 127.0.0.1 at 2018-12-02 22:05:16 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:16.402357"], ["last_sign_in_at", "2018-12-03 00:05:16.402357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:16.403731"], ["id", 1099]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"862"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 862], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (4.1ms)
Completed 200 OK in 59ms (Views: 56.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$h7yyMWYkvb3Cnt2c9vDzFOp/6g4DdtIJlq2PgkO/l0rO4Mhfgc19u"], ["created_at", "2018-12-03 00:05:16.635319"], ["updated_at", "2018-12-03 00:05:16.635319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:16.639997"], ["updated_at", "2018-12-03 00:05:16.639997"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/863” for 127.0.0.1 at 2018-12-02 22:05:16 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:16.644979"], ["last_sign_in_at", "2018-12-03 00:05:16.644979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:16.646220"], ["id", 1100]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"863"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 863], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (3.6ms)
Completed 200 OK in 55ms (Views: 52.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:16.712863"], ["updated_at", "2018-12-03 00:05:16.712863"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/864” for 127.0.0.1 at 2018-12-02 22:05:16 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"864"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$.sEhEZoeQ9t6O7FI08T2..zES6ugXWUuu00fedWgmXM7/NDaw3S4K"], ["created_at", "2018-12-03 00:05:16.884955"], ["updated_at", "2018-12-03 00:05:16.884955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:16.889152"], ["updated_at", "2018-12-03 00:05:16.889152"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/865” for 127.0.0.1 at 2018-12-02 22:05:16 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:16.893584"], ["last_sign_in_at", "2018-12-03 00:05:16.893584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:16.894526"], ["id", 1101]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"865"}
Rendering rooms/filtro.html.erb within layouts/application
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/filtro.html.erb within layouts/application (6.7ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 67ms (Views: 58.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:16.972181"], ["updated_at", "2018-12-03 00:05:16.972181"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/866” for 127.0.0.1 at 2018-12-02 22:05:16 -0200 Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"866"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$1q4DvIQvPFxde52IAHW5P.YXexhB9GqxmaFuA7iQ/fqaomG6.LmPy"], ["created_at", "2018-12-03 00:05:17.145683"], ["updated_at", "2018-12-03 00:05:17.145683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:17.150302"], ["updated_at", "2018-12-03 00:05:17.150302"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/867/edit” for 127.0.0.1 at 2018-12-02 22:05:17 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:17.155108"], ["last_sign_in_at", "2018-12-03 00:05:17.155108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:17.156198"], ["id", 1102]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"867"}
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 867], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-user.html.erb (3.9ms)
Completed 200 OK in 61ms (Views: 57.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$YwfnZAs1eg.178w2sK39BuyH78ziDilrXQPoNfvygaguZbJz6UnW2"], ["created_at", "2018-12-03 00:05:17.395125"], ["updated_at", "2018-12-03 00:05:17.395125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:17.399479"], ["updated_at", "2018-12-03 00:05:17.399479"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/868/edit” for 127.0.0.1 at 2018-12-02 22:05:17 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:17.404323"], ["last_sign_in_at", "2018-12-03 00:05:17.404323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:17.405337"], ["id", 1103]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"868"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 868], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (7.8ms)
Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 64ms (Views: 61.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:17.482000"], ["updated_at", "2018-12-03 00:05:17.482000"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/869” for 127.0.0.1 at 2018-12-02 22:05:17 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"869"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$9VWpilNJGBfJDdnBRNl.5uHPcLabWYWfFJrHiq584WirjvP3B7GPW"], ["created_at", "2018-12-03 00:05:17.655153"], ["updated_at", "2018-12-03 00:05:17.655153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:05:17 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:17.660947"], ["last_sign_in_at", "2018-12-03 00:05:17.660947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:17.662073"], ["id", 1104]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$xqKJgBA9OiWVvpXfWXt52OurgLhU80l66e3vcGr7aextPlH4QF2w6"], ["created_at", "2018-12-03 00:05:18.149603"], ["updated_at", "2018-12-03 00:05:18.149603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:05:18 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:18.155950"], ["last_sign_in_at", "2018-12-03 00:05:18.155950"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:18.157026"], ["id", 1105]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$DuQe0X3ZgYR15uJ07danUeDr2jqBRodxBmFY1A7V4lJcTCAeIyEQa"], ["created_at", "2018-12-03 00:05:18.635940"], ["updated_at", "2018-12-03 00:05:18.635940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:05:18 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:18.642317"], ["last_sign_in_at", "2018-12-03 00:05:18.642317"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:18.643454"], ["id", 1106]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$CYHZarGDZ9i25.9RS8xS1uPap/bQ6fKPxBSkelKoWWzLAK3MRbTXi"], ["created_at", "2018-12-03 00:05:19.137477"], ["updated_at", "2018-12-03 00:05:19.137477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:05:19 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:19.143646"], ["last_sign_in_at", "2018-12-03 00:05:19.143646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:19.144713"], ["id", 1107]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$0664kjfAuRGTtomm9UBRn.PiD/StVJP6YM4PdchtnSd7YbPZrSAy6"], ["created_at", "2018-12-03 00:05:19.638309"], ["updated_at", "2018-12-03 00:05:19.638309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:05:19 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:19.644897"], ["last_sign_in_at", "2018-12-03 00:05:19.644897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:19.646155"], ["id", 1108]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:173:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$EMVxMmy.gBl4KcwLl0IsQeAQckh3UNytf9GiQj5GmzwEsQw9zIKAG"], ["created_at", "2018-12-03 00:05:20.122906"], ["updated_at", "2018-12-03 00:05:20.122906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:20.127948"], ["updated_at", "2018-12-03 00:05:20.127948"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/870” for 127.0.0.1 at 2018-12-02 22:05:20 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:20.133574"], ["last_sign_in_at", "2018-12-03 00:05:20.133574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:20.134968"], ["id", 1109]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"870"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$RKuM1LD3kCa4.0l9flzGW.wwq4yBnCPAUPLwttXMPEj2QFsZMEv0W"], ["created_at", "2018-12-03 00:05:20.634175"], ["updated_at", "2018-12-03 00:05:20.634175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:20.638696"], ["updated_at", "2018-12-03 00:05:20.638696"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/871” for 127.0.0.1 at 2018-12-02 22:05:20 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:20.644034"], ["last_sign_in_at", "2018-12-03 00:05:20.644034"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:20.645103"], ["id", 1110]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"871"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$YjdrIWbBhGaX6H.eQfvh7.jNpav1AXR.FDU9Xy3T6zMiODlWHFY6m"], ["created_at", "2018-12-03 00:05:21.119106"], ["updated_at", "2018-12-03 00:05:21.119106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:21.123361"], ["updated_at", "2018-12-03 00:05:21.123361"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/872” for 127.0.0.1 at 2018-12-02 22:05:21 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:21.129105"], ["last_sign_in_at", "2018-12-03 00:05:21.129105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:21.130414"], ["id", 1111]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"872"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$QHOWMydIY3scwpfV0rzTXO7Sl0MvwV2Qqp322IxUmBGx238H5GZdK"], ["created_at", "2018-12-03 00:05:21.616844"], ["updated_at", "2018-12-03 00:05:21.616844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:21.621416"], ["updated_at", "2018-12-03 00:05:21.621416"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/873” for 127.0.0.1 at 2018-12-02 22:05:21 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:21.627292"], ["last_sign_in_at", "2018-12-03 00:05:21.627292"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:21.628494"], ["id", 1112]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"873"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$WEnkE9phS87uUi9tWhQDGuAMnrh4CTcSkEDn5VWQPB8Tb3ACGyFqG"], ["created_at", "2018-12-03 00:05:22.105795"], ["updated_at", "2018-12-03 00:05:22.105795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:05:22 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:22.112321"], ["last_sign_in_at", "2018-12-03 00:05:22.112321"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:22.113384"], ["id", 1113]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:222:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$CwrQSd/uQ.jzxpYjKfUZweuFsL9TNh8ugOC0l80Iczcfjz6AUalGa"], ["created_at", "2018-12-03 00:05:22.593267"], ["updated_at", "2018-12-03 00:05:22.593267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:22.597923"], ["updated_at", "2018-12-03 00:05:22.597923"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/874” for 127.0.0.1 at 2018-12-02 22:05:22 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:22.602700"], ["last_sign_in_at", "2018-12-03 00:05:22.602700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:22.603755"], ["id", 1114]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"874"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$zkiAbpuauJq7c30RtHurD.3BaiMWhcLk1r8YpEkW/1ct2vgE18XRu"], ["created_at", "2018-12-03 00:05:23.074325"], ["updated_at", "2018-12-03 00:05:23.074325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:23.078852"], ["updated_at", "2018-12-03 00:05:23.078852"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/875” for 127.0.0.1 at 2018-12-02 22:05:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:23.083473"], ["last_sign_in_at", "2018-12-03 00:05:23.083473"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:23.084626"], ["id", 1115]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"875"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$TAsSAj04t0rj.OcsX07dkeB4sk7hU01CHyLCeFixKP916OZPLClNC"], ["created_at", "2018-12-03 00:05:23.561269"], ["updated_at", "2018-12-03 00:05:23.561269"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:23.565835"], ["updated_at", "2018-12-03 00:05:23.565835"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/876” for 127.0.0.1 at 2018-12-02 22:05:23 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:23.570395"], ["last_sign_in_at", "2018-12-03 00:05:23.570395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:23.571363"], ["id", 1116]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"876"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$D2iFmVq60T3G0uK/N7MS4e17rTmHIhAgasqy0YkBBt/OwyTeUIYKi"], ["created_at", "2018-12-03 00:05:24.045671"], ["updated_at", "2018-12-03 00:05:24.045671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:24.050099"], ["updated_at", "2018-12-03 00:05:24.050099"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/877” for 127.0.0.1 at 2018-12-02 22:05:24 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:24.054781"], ["last_sign_in_at", "2018-12-03 00:05:24.054781"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:24.055891"], ["id", 1117]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"877"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$TRQ/wMMs089leETFZmt5ruTI7BbVAVJynuhmu7/lcs//KUPgV5KGe"], ["created_at", "2018-12-03 00:05:24.533983"], ["updated_at", "2018-12-03 00:05:24.533983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/search-rooms” for 127.0.0.1 at 2018-12-02 22:05:24 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:24.539467"], ["last_sign_in_at", "2018-12-03 00:05:24.539467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:24.540469"], ["id", 1118]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_rooms as HTML
Rendering rooms/search_rooms.html.erb within layouts/application Rendered rooms/search_rooms.html.erb within layouts/application (5.6ms) Rendered layouts/_header-user.html.erb (4.3ms)
Completed 200 OK in 58ms (Views: 57.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$CJq8yQu/1x/D9LZ3iXDqDuomMeeJzYYLppDy.ChTa8ZO9FBKi1Mn."], ["created_at", "2018-12-03 00:05:24.771512"], ["updated_at", "2018-12-03 00:05:24.771512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:24.775467"], ["updated_at", "2018-12-03 00:05:24.775467"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:24.778940"], ["updated_at", "2018-12-03 00:05:24.778940"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:24.782582"], ["updated_at", "2018-12-03 00:05:24.782582"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 878], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1119], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1119], ["room_id", 878], ["created_at", "2018-12-03 00:05:24.790080"], ["updated_at", "2018-12-03 00:05:24.790080"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/search-result” for 127.0.0.1 at 2018-12-02 22:05:24 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:24.795202"], ["last_sign_in_at", "2018-12-03 00:05:24.795202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:24.796045"], ["id", 1119]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML
Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:289:in `block (6 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$PoGxi4.f4pwbp18zPt8XP.NnuNfO0A4Mm3kozmOv7OIWQy9AQK3Z6"], ["created_at", "2018-12-03 00:05:25.284885"], ["updated_at", "2018-12-03 00:05:25.284885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:25.288966"], ["updated_at", "2018-12-03 00:05:25.288966"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:25.292592"], ["updated_at", "2018-12-03 00:05:25.292592"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:05:25.295814"], ["updated_at", "2018-12-03 00:05:25.295814"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 881], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1120], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1120], ["room_id", 881], ["created_at", "2018-12-03 00:05:25.303615"], ["updated_at", "2018-12-03 00:05:25.303615"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/search-result” for 127.0.0.1 at 2018-12-02 22:05:25 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:05:25.308563"], ["last_sign_in_at", "2018-12-03 00:05:25.308563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:05:25.309456"], ["id", 1120]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$ht9N.OoA9P1BUWHEU0BvTOKnpnIRe45bqyP.RCda0u0SKN8pDhv2y"], ["created_at", "2018-12-03 00:07:34.011178"], ["updated_at", "2018-12-03 00:07:34.011178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"1121"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["reset_digest", "RqX6-NvIkgMGTHlO_vd0eQ"], ["updated_at", "2018-12-03 00:07:34.032438"], ["id", 1121]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3[0m [["updated_at", "2018-12-03 00:07:34.037114"], ["reset_sent_at", "2018-12-03 00:07:34.036321"], ["id", 1121]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (2.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)
UserMailer#password_reset: processed outbound mail in 352.3ms Sent mail to teste@unb.com.br (60638.7ms) Date: Sun, 02 Dec 2018 22:07:34 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0473c661bc0_2f29d68f1c915be@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;
boundary="--==_mimepart_5c0473c65f7b7_2f29d68f1c91442"; charset=UTF-8
Content-Transfer-Encoding: 7bit
—-==_mimepart_5c0473c65f7b7_2f29d68f1c91442 Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Para recadastrar sua senha clique no link abaixo:
localhost:3000/password_resets/RqX6-NvIkgMGTHlO_vd0eQ/edit?email=3D= teste%40unb.com.br
Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.
—-==_mimepart_5c0473c65f7b7_2f29d68f1c91442 Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html> <html>
<head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8“ />
<style>
/* Email styles need to be inline */
</style>
</head>
<body>
<h1>Recadastramento de Senha</h1>
<p>Para recadastrar sua senha clique no link abaixo:</p>
<a href=3D“localhost:3000/password_resets/RqX6-NvIkgMGTHlO_vd0eQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>
<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>
</body>
</html>
—-==_mimepart_5c0473c65f7b7_2f29d68f1c91442–
Completed 500 Internal Server Error in 61009ms (ActiveRecord: 3.9ms)
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$PqHUzoq8INhhdaDfVVutQOpQw4ahdUCq3IqBHZjB96V/CZ5.RphtS"], ["created_at", "2018-12-03 00:08:35.202823"], ["updated_at", "2018-12-03 00:08:35.202823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)
UserMailer#password_reset: processed outbound mail in 10.9ms
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$PiN3gLYyk3MBGg7dVL4fq.EgfJ/2.6sl4hQ/vvENuIEFq9jxKrnTy"], ["created_at", "2018-12-03 00:08:35.385166"], ["updated_at", "2018-12-03 00:08:35.385166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1123"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["encrypted_password", "$2a$11$qYGyYK3TQnoERv11pSQnV.DRX4V9Gnd2EXFvYlqME1HroTTM/ZoKW"], ["updated_at", "2018-12-03 00:08:35.552276"], ["id", 1123]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Redirected to test.host/login Completed 302 Found in 166ms (ActiveRecord: 1.7ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$Dp9rmKJt.X/DuCWLemS2o.usguqwukoxYqD0P7SDDNlpbWnfxSaaW"], ["created_at", "2018-12-03 00:08:35.721054"], ["updated_at", "2018-12-03 00:08:35.721054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"1124"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$KMm9tHGHNr9.VUiw7q8DleI/lo8QPG6Ps1HOUjvn2VqTjH8nYpjQK"], ["created_at", "2018-12-03 00:08:35.895709"], ["updated_at", "2018-12-03 00:08:35.895709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1125"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 195ms (Views: 5.6ms | ActiveRecord: 1.1ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$eBJwG8HdhCa4S7MmbkWCbeMp9WfUsSgdBfuLghfZX9Imejg7mapyq"], ["created_at", "2018-12-03 00:08:36.264617"], ["updated_at", "2018-12-03 00:08:36.264617"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1126"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 167ms (Views: 3.9ms | ActiveRecord: 1.3ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$11$971ZEYaTAvL1n.xlw2KjK.xhYNsU/Qvp3Ko78joO1id52RMGKLjFW"], ["created_at", "2018-12-03 00:08:36.599239"], ["updated_at", "2018-12-03 00:08:36.599239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#update as HTML
Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"1127"}
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$cozWEoxM4YpdJB08NHB..u8Zy3laZahy.N1RwRjS2pw0W2GymoP42"], ["created_at", "2018-12-03 00:08:36.799533"], ["updated_at", "2018-12-03 00:08:36.799533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)
UserMailer#password_reset: processed outbound mail in 11.1ms
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$twhmGil4QOXxIV.Y9JBLze20MOilrWNsRzW48kD/WbVrb1vR1gBre"], ["created_at", "2018-12-03 00:08:36.979188"], ["updated_at", "2018-12-03 00:08:36.979188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)
UserMailer#password_reset: processed outbound mail in 11.1ms
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$F/TFfCXIbtK4MQozN4hS1uMpNoWp.sx07MR1ru3kZR0533Ze56siW"], ["created_at", "2018-12-03 00:08:37.323591"], ["updated_at", "2018-12-03 00:08:37.323591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:37.328518"], ["updated_at", "2018-12-03 00:08:37.328518"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:37 -0200
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:37.347321"], ["last_sign_in_at", "2018-12-03 00:08:37.347321"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:37.348539"], ["id", 1130]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"884"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 884], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$WpbOde/H/JxvPAK0H55MJequCEipFooCpfoPulsrC7sZS8lU8GbQG"], ["created_at", "2018-12-03 00:08:37.904344"], ["updated_at", "2018-12-03 00:08:37.904344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:37.908879"], ["updated_at", "2018-12-03 00:08:37.908879"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:37 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:37.914897"], ["last_sign_in_at", "2018-12-03 00:08:37.914897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:37.916032"], ["id", 1131]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"885"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:15:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$PXKD2xMiQ6iRSfIjV9s85.O7NI5E/.7bmNvs73HycVUIjQSY8XDR."], ["created_at", "2018-12-03 00:08:38.377805"], ["updated_at", "2018-12-03 00:08:38.377805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:38.382144"], ["updated_at", "2018-12-03 00:08:38.382144"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:38 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:38.388091"], ["last_sign_in_at", "2018-12-03 00:08:38.388091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:38.389206"], ["id", 1132]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"886", "user_id"=>"1132"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:38 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"886", "user_id"=>"1132"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$O0QXRSsrJzsxPBbZEPm2GO9/wuM0M5En7/3uBaIVFpRFjT8W/F6aG"], ["created_at", "2018-12-03 00:08:39.209989"], ["updated_at", "2018-12-03 00:08:39.209989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:39.214356"], ["updated_at", "2018-12-03 00:08:39.214356"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:39 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:39.221409"], ["last_sign_in_at", "2018-12-03 00:08:39.221409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:39.222548"], ["id", 1133]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"887", "user_id"=>"1133"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:39 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"887", "user_id"=>"1133"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 887], ["user_id", 1133], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$kbX0dIJEr9APjw7YGWEjPuCZFdm0qDjqYtqJBYCOoGQ4G6B2W/kla"], ["created_at", "2018-12-03 00:08:40.034881"], ["updated_at", "2018-12-03 00:08:40.034881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:40.040758"], ["updated_at", "2018-12-03 00:08:40.040758"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:40 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:40.049589"], ["last_sign_in_at", "2018-12-03 00:08:40.049589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:40.051062"], ["id", 1134]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"888", "user_id"=>"1134"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:31:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:40 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"888", "user_id"=>"1134"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 888], ["user_id", 1134], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$HXElNMkn/g2h1VwHSgwTMeq9eZ0LKCugZo3ju7G3B0Gg0DvWSZmo."], ["created_at", "2018-12-03 00:08:40.852652"], ["updated_at", "2018-12-03 00:08:40.852652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:40.856966"], ["updated_at", "2018-12-03 00:08:40.856966"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:40 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:40.862885"], ["last_sign_in_at", "2018-12-03 00:08:40.862885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:40.864211"], ["id", 1135]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"889"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 889], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$84zuY5a2k9LMIB9WJPIs7OhIJyPx.kbKfRxK/E37YKpLTqQhApQOC"], ["created_at", "2018-12-03 00:08:41.325701"], ["updated_at", "2018-12-03 00:08:41.325701"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:41.330234"], ["updated_at", "2018-12-03 00:08:41.330234"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-02 22:08:41 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:41.335631"], ["last_sign_in_at", "2018-12-03 00:08:41.335631"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:41.336727"], ["id", 1136]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"890"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:50:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$6VtR1CLNu5FY3z.zffaSue96uFOBZJBJjxbGWaDAd/gTIhq.lhHlS"], ["created_at", "2018-12-03 00:08:41.806862"], ["updated_at", "2018-12-03 00:08:41.806862"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:41.811517"], ["updated_at", "2018-12-03 00:08:41.811517"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 891], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1137], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1137], ["room_id", 891], ["created_at", "2018-12-03 00:08:41.826688"], ["updated_at", "2018-12-03 00:08:41.826688"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/891” for 127.0.0.1 at 2018-12-02 22:08:41 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:41.832173"], ["last_sign_in_at", "2018-12-03 00:08:41.832173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:41.833262"], ["id", 1137]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"891"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 891], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-11-26' AND room_id = '891')[0m
Rendered appointments/show.html.erb within layouts/application (14.2ms)
Rendered layouts/_header-user.html.erb (4.0ms)
Completed 200 OK in 458ms (Views: 453.3ms | ActiveRecord: 1.4ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$oUrJEAVsOH7JgbkKoOijvOXnEl3q5RtcaHIAUyjBtoByTR2EFt0vq"], ["created_at", "2018-12-03 00:08:42.461491"], ["updated_at", "2018-12-03 00:08:42.461491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:42.467529"], ["updated_at", "2018-12-03 00:08:42.467529"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 892], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1138], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1138], ["room_id", 892], ["created_at", "2018-12-03 00:08:42.478766"], ["updated_at", "2018-12-03 00:08:42.478766"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 892], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1138], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1138], ["room_id", 892], ["created_at", "2018-12-03 00:08:42.487501"], ["updated_at", "2018-12-03 00:08:42.487501"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 22:08:42 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:42.492558"], ["last_sign_in_at", "2018-12-03 00:08:42.492558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:42.493598"], ["id", 1138]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1138]] Rendered appointments/my_appointments.html.erb within layouts/application (5.8ms) Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 66ms (Views: 56.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$/k2trlzk642AV5QHoHwODudd2GRPIV3iV/6uhueORWfDuU86VhTa."], ["created_at", "2018-12-03 00:08:42.728674"], ["updated_at", "2018-12-03 00:08:42.728674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:42.733028"], ["updated_at", "2018-12-03 00:08:42.733028"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 893], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1139], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1139], ["room_id", 893], ["created_at", "2018-12-03 00:08:42.741400"], ["updated_at", "2018-12-03 00:08:42.741400"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 893], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1139], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1139], ["room_id", 893], ["created_at", "2018-12-03 00:08:42.750573"], ["updated_at", "2018-12-03 00:08:42.750573"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-02 22:08:42 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:42.755625"], ["last_sign_in_at", "2018-12-03 00:08:42.755625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:42.756681"], ["id", 1139]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1139]] Rendered appointments/my_appointments.html.erb within layouts/application (4.6ms) Rendered layouts/_header-user.html.erb (4.0ms)
Completed 200 OK in 91ms (Views: 89.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$ey72lDIxOfsEkO1Stv.NkO3chuy9GI8BBdZO3ceTZ3GdEN.OgQD7."], ["created_at", "2018-12-03 00:08:43.023492"], ["updated_at", "2018-12-03 00:08:43.023492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:43.028041"], ["updated_at", "2018-12-03 00:08:43.028041"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 894], ["LIMIT", 1]]
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1140], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1140], ["room_id", 894], ["created_at", "2018-12-03 00:08:43.036795"], ["updated_at", "2018-12-03 00:08:43.036795"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/358” for 127.0.0.1 at 2018-12-02 22:08:43 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:43.042422"], ["last_sign_in_at", "2018-12-03 00:08:43.042422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:43.043619"], ["id", 1140]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"358"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:109:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$xNyuR/2YSFEztCbf/q2fOeinhXdMQ.1302t20SeFvTO2xOajHmPSu"], ["created_at", "2018-12-03 00:08:43.554947"], ["updated_at", "2018-12-03 00:08:43.554947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 22:08:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:43.562101"], ["last_sign_in_at", "2018-12-03 00:08:43.562101"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:43.563209"], ["id", 1141]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML
Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (28.5ms) Rendered layouts/_header-admin.html.erb (5.1ms)
Completed 200 OK in 96ms (Views: 94.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$KG19V91MgWmfT/gIZFrtL.qVA7F0a7BiObC.0ROEKBv80JzO8yhuS"], ["created_at", "2018-12-03 00:08:43.833967"], ["updated_at", "2018-12-03 00:08:43.833967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-02 22:08:43 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:43.842593"], ["last_sign_in_at", "2018-12-03 00:08:43.842593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:43.843927"], ["id", 1142]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$iEP5pVC3XLYhltnNcnaal.0oY7v69ZvgNPVY3iK2zSAAOEiGuytu."], ["created_at", "2018-12-03 00:08:44.021234"], ["updated_at", "2018-12-03 00:08:44.021234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 22:08:44 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:44.028087"], ["last_sign_in_at", "2018-12-03 00:08:44.028087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:44.029570"], ["id", 1143]] [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (9.0ms) Rendered layouts/_header-user.html.erb (6.4ms)
Completed 200 OK in 91ms (Views: 87.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$IORyRiyxY32ekHmPMuj6/eTq0md/uzDf6Zx5tI2hFrq3mzLzwqKL6"], ["created_at", "2018-12-03 00:08:44.298821"], ["updated_at", "2018-12-03 00:08:44.298821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 22:08:44 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:44.304978"], ["last_sign_in_at", "2018-12-03 00:08:44.304978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:44.305980"], ["id", 1144]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#index as HTML
Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (9.0ms) Rendered layouts/_header-user.html.erb (5.5ms)
Completed 200 OK in 80ms (Views: 78.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m [1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
Started GET “/rooms” for 127.0.0.1 at 2018-12-02 22:08:44 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$czqadeTLyPY5Yi4v21JjYeE5fMqXW3qrcYAu.tpsFygtUnsoqmmAS"], ["created_at", "2018-12-03 00:08:44.574051"], ["updated_at", "2018-12-03 00:08:44.574051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:44.578707"], ["updated_at", "2018-12-03 00:08:44.578707"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/895” for 127.0.0.1 at 2018-12-02 22:08:44 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:44.584517"], ["last_sign_in_at", "2018-12-03 00:08:44.584517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:44.585566"], ["id", 1145]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"895"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 895], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (3.7ms)
Completed 200 OK in 94ms (Views: 91.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$n98QqOPDROAWCSr/Ckhbn.ww2bUjEULKtqmqdM.7gV5bwBUrrrUfa"], ["created_at", "2018-12-03 00:08:44.855648"], ["updated_at", "2018-12-03 00:08:44.855648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:44.861987"], ["updated_at", "2018-12-03 00:08:44.861987"], ["tipo_sala", "palestras"]]
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/896” for 127.0.0.1 at 2018-12-02 22:08:44 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:44.870880"], ["last_sign_in_at", "2018-12-03 00:08:44.870880"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:44.872297"], ["id", 1146]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#show as HTML
Parameters: {"id"=>"896"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 896], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 81ms (Views: 77.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:44.965814"], ["updated_at", "2018-12-03 00:08:44.965814"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/897” for 127.0.0.1 at 2018-12-02 22:08:44 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"897"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$ZH/KR6aWuvRxIqJ9Z5Catueb8tDtBlP6oJd0tYOF.AC24Ai.PwZdm"], ["created_at", "2018-12-03 00:08:45.140142"], ["updated_at", "2018-12-03 00:08:45.140142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:45.144711"], ["updated_at", "2018-12-03 00:08:45.144711"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/898” for 127.0.0.1 at 2018-12-02 22:08:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:45.150235"], ["last_sign_in_at", "2018-12-03 00:08:45.150235"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:45.151292"], ["id", 1147]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"898"}
Rendering rooms/filtro.html.erb within layouts/application
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/filtro.html.erb within layouts/application (8.0ms)
Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 60ms (Views: 58.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:45.223467"], ["updated_at", "2018-12-03 00:08:45.223467"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/filtro/899” for 127.0.0.1 at 2018-12-02 22:08:45 -0200 Processing by RoomsController#filtro as HTML
Parameters: {"id"=>"899"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$RLeb8r53kIonV5TmYrwwBe3549cx/EOff1voDMGoVM1yu8haDtQVi"], ["created_at", "2018-12-03 00:08:45.400135"], ["updated_at", "2018-12-03 00:08:45.400135"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:45.404314"], ["updated_at", "2018-12-03 00:08:45.404314"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/900/edit” for 127.0.0.1 at 2018-12-02 22:08:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:45.409001"], ["last_sign_in_at", "2018-12-03 00:08:45.409001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:45.410247"], ["id", 1148]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"900"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 900], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (9.2ms)
Rendered layouts/_header-user.html.erb (4.0ms)
Completed 200 OK in 72ms (Views: 70.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$deFZPhQeP4nRs6PFFZzBYu9BgkBAfJbXMOMAX/PKQHFsesJPLZTtu"], ["created_at", "2018-12-03 00:08:45.656643"], ["updated_at", "2018-12-03 00:08:45.656643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:45.661697"], ["updated_at", "2018-12-03 00:08:45.661697"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/901/edit” for 127.0.0.1 at 2018-12-02 22:08:45 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:45.666747"], ["last_sign_in_at", "2018-12-03 00:08:45.666747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:45.668042"], ["id", 1149]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#edit as HTML
Parameters: {"id"=>"901"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 901], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.2ms)
Rendered layouts/_header-user.html.erb (3.9ms)
Completed 200 OK in 68ms (Views: 65.6ms | ActiveRecord: 0.4ms)
[1m[35m (2.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:45.750893"], ["updated_at", "2018-12-03 00:08:45.750893"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/rooms/902” for 127.0.0.1 at 2018-12-02 22:08:45 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"902"}
Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$NGNIQqyXN1FlQMCuq6Mvceis6npdAQwPRdIYYC0XU3R3jdeJAbgze"], ["created_at", "2018-12-03 00:08:45.930135"], ["updated_at", "2018-12-03 00:08:45.930135"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:08:45 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:45.936355"], ["last_sign_in_at", "2018-12-03 00:08:45.936355"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:45.937398"], ["id", 1150]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$QgSpuIwVd2pTs.d2rmShTOnXaqN8Snyi9Q0rY.OiobaS.XSMYjQN6"], ["created_at", "2018-12-03 00:08:46.430683"], ["updated_at", "2018-12-03 00:08:46.430683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:08:46 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:46.436609"], ["last_sign_in_at", "2018-12-03 00:08:46.436609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:46.437635"], ["id", 1151]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:144:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$fGmZlY6djbO9M2Gqiarosu2DWPsDu/Ff3cUoTTmnLW9o17AycGUjS"], ["created_at", "2018-12-03 00:08:46.914502"], ["updated_at", "2018-12-03 00:08:46.914502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:08:46 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:46.920568"], ["last_sign_in_at", "2018-12-03 00:08:46.920568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:46.921660"], ["id", 1152]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$mtrejawgxSTpIkUI6hVEWOwhnbj3RPnV9LYdMwW3fX1GWTqyOATvG"], ["created_at", "2018-12-03 00:08:47.408312"], ["updated_at", "2018-12-03 00:08:47.408312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:08:47 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:47.414847"], ["last_sign_in_at", "2018-12-03 00:08:47.414847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:47.415887"], ["id", 1153]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:157:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$NidBpZG7OQuWIHJ.EbpcqOC3ZYKsz4V6W5NCVMNbSFtlkCqHOjiUC"], ["created_at", "2018-12-03 00:08:47.887333"], ["updated_at", "2018-12-03 00:08:47.887333"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:08:47 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:47.893201"], ["last_sign_in_at", "2018-12-03 00:08:47.893201"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:47.894273"], ["id", 1154]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:173:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$sgPHlbBLzKa57v/bz9U33.mLSzoEGaceSiTf/8Nin04sIvdo6zLKy"], ["created_at", "2018-12-03 00:08:48.367259"], ["updated_at", "2018-12-03 00:08:48.367259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:48.371516"], ["updated_at", "2018-12-03 00:08:48.371516"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/903” for 127.0.0.1 at 2018-12-02 22:08:48 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:48.376972"], ["last_sign_in_at", "2018-12-03 00:08:48.376972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:48.378232"], ["id", 1155]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"903"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "New Fake Name"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$WTDuQ4PIHBa3aUbeaLZUzO3E.EHpfGl4978cw7Y0MSxpJhGCg1nTi"], ["created_at", "2018-12-03 00:08:48.860915"], ["updated_at", "2018-12-03 00:08:48.860915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:48.865461"], ["updated_at", "2018-12-03 00:08:48.865461"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/904” for 127.0.0.1 at 2018-12-02 22:08:48 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:48.873179"], ["last_sign_in_at", "2018-12-03 00:08:48.873179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:48.874788"], ["id", 1156]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"904"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:192:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$HzzRLffzhrc4hIBY83Y6p.XSH85o7G.NSgUyvdwQ083yGDKRWdNhC"], ["created_at", "2018-12-03 00:08:49.369784"], ["updated_at", "2018-12-03 00:08:49.369784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:49.374035"], ["updated_at", "2018-12-03 00:08:49.374035"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/905” for 127.0.0.1 at 2018-12-02 22:08:49 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:49.381552"], ["last_sign_in_at", "2018-12-03 00:08:49.381552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:49.383229"], ["id", 1157]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"905"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", ""], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$/P.8ULPx8smnCY0Ci3T1r.tVuHe5Gfh9Vwdtwb.OTUynFPqzqqvhq"], ["created_at", "2018-12-03 00:08:49.870884"], ["updated_at", "2018-12-03 00:08:49.870884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:49.875251"], ["updated_at", "2018-12-03 00:08:49.875251"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started PUT “/rooms/906” for 127.0.0.1 at 2018-12-02 22:08:49 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:49.880931"], ["last_sign_in_at", "2018-12-03 00:08:49.880931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:49.882054"], ["id", 1158]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#update as HTML
Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"906"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:34:in `put' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:206:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$QEdwUxnlwE/Wer.sotQX2uld0NIDFkrzkH/T.2J5gGxVdcFMqpNhq"], ["created_at", "2018-12-03 00:08:50.367129"], ["updated_at", "2018-12-03 00:08:50.367129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/rooms” for 127.0.0.1 at 2018-12-02 22:08:50 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:50.374569"], ["last_sign_in_at", "2018-12-03 00:08:50.374569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:50.375760"], ["id", 1159]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#create as HTML
Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:222:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$.jZXW0ndqf6WEQu815FrpegMaad1A2aBjUiQHB0w3uBIj6dScnh9e"], ["created_at", "2018-12-03 00:08:50.844890"], ["updated_at", "2018-12-03 00:08:50.844890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:50.849600"], ["updated_at", "2018-12-03 00:08:50.849600"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/907” for 127.0.0.1 at 2018-12-02 22:08:50 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:50.854517"], ["last_sign_in_at", "2018-12-03 00:08:50.854517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:50.855556"], ["id", 1160]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"907"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$uYoEm8Qi701BVeiYWlj6healFkkJ183vh8W.Uelz0mHIlAY6nQ1fq"], ["created_at", "2018-12-03 00:08:51.336747"], ["updated_at", "2018-12-03 00:08:51.336747"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:51.341401"], ["updated_at", "2018-12-03 00:08:51.341401"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/908” for 127.0.0.1 at 2018-12-02 22:08:51 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:51.346504"], ["last_sign_in_at", "2018-12-03 00:08:51.346504"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:51.347639"], ["id", 1161]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"908"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:236:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$Xm/7jyxyCN4qxTHQLkRQseRaZaerpovNbL2hua2BLai/TBuh0m4gO"], ["created_at", "2018-12-03 00:08:51.836479"], ["updated_at", "2018-12-03 00:08:51.836479"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:51.840614"], ["updated_at", "2018-12-03 00:08:51.840614"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/909” for 127.0.0.1 at 2018-12-02 22:08:51 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:51.845478"], ["last_sign_in_at", "2018-12-03 00:08:51.845478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:51.846646"], ["id", 1162]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"909"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2[0m [["name", "Fake-123"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$UTGX9hMqd5pEoSWjpulIa.AphQ66K5OwxEzWpA6dSdbP8HP4235qG"], ["created_at", "2018-12-03 00:08:52.317661"], ["updated_at", "2018-12-03 00:08:52.317661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:52.321495"], ["updated_at", "2018-12-03 00:08:52.321495"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/rooms/910” for 127.0.0.1 at 2018-12-02 22:08:52 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:52.326400"], ["last_sign_in_at", "2018-12-03 00:08:52.326400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:52.327482"], ["id", 1163]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#destroy as HTML
Parameters: {"id"=>"910"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:250:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$6BoFU0D6CUmcyMFKuesQeORmBSoleg1Qbr5XF5fsEoaCeguG37PW6"], ["created_at", "2018-12-03 00:08:52.811794"], ["updated_at", "2018-12-03 00:08:52.811794"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/search-rooms” for 127.0.0.1 at 2018-12-02 22:08:52 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:52.817005"], ["last_sign_in_at", "2018-12-03 00:08:52.817005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:52.818050"], ["id", 1164]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_rooms as HTML
Rendering rooms/search_rooms.html.erb within layouts/application Rendered rooms/search_rooms.html.erb within layouts/application (5.6ms) Rendered layouts/_header-user.html.erb (3.5ms)
Completed 200 OK in 56ms (Views: 55.5ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$JkzCmfv9RYhCPOvsuHgQ1eTCFPq9dufR12q4hKJ1UuiE4NJJ7TgDe"], ["created_at", "2018-12-03 00:08:53.047350"], ["updated_at", "2018-12-03 00:08:53.047350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:53.051705"], ["updated_at", "2018-12-03 00:08:53.051705"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:53.055506"], ["updated_at", "2018-12-03 00:08:53.055506"], ["tipo_sala", "palestras"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:53.060135"], ["updated_at", "2018-12-03 00:08:53.060135"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 911], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1165], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1165], ["room_id", 911], ["created_at", "2018-12-03 00:08:53.071174"], ["updated_at", "2018-12-03 00:08:53.071174"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/search-result” for 127.0.0.1 at 2018-12-02 22:08:53 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:53.077045"], ["last_sign_in_at", "2018-12-03 00:08:53.077045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:53.078261"], ["id", 1165]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML
Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:289:in `block (6 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
[1m[36mRoom Load (1.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)[0m
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$emgVM3uTZsN91rJhdIWTweGkcFkpR5doGLuctOI0dhZsLSNSZc3Xu"], ["created_at", "2018-12-03 00:08:53.587743"], ["updated_at", "2018-12-03 00:08:53.587743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:53.592380"], ["updated_at", "2018-12-03 00:08:53.592380"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:53.595914"], ["updated_at", "2018-12-03 00:08:53.595914"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 00:08:53.599716"], ["updated_at", "2018-12-03 00:08:53.599716"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 914], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1166], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1166], ["room_id", 914], ["created_at", "2018-12-03 00:08:53.607256"], ["updated_at", "2018-12-03 00:08:53.607256"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/search-result” for 127.0.0.1 at 2018-12-02 22:08:53 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 00:08:53.612396"], ["last_sign_in_at", "2018-12-03 00:08:53.612396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 00:08:53.613359"], ["id", 1166]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by RoomsController#search_result as HTML
Parameters: {"date_search"=>nil, "time_search"=>nil}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/rooms_spec.rb:299:in `block (6 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
Started GET “/” for 127.0.0.1 at 2018-12-03 15:13:06 -0200
[1m[35m (17.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (101.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (272.5ms) Rendered layouts/_header-user.html.erb (4.2ms)
Completed 200 OK in 803ms (Views: 574.2ms | ActiveRecord: 200.0ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:13:12 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (49.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (112.1ms) Rendered layouts/_header-admin.html.erb (6.3ms)
Completed 200 OK in 300ms (Views: 231.2ms | ActiveRecord: 54.2ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:13:14 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (72.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (142.9ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.1ms)
Completed 200 OK in 218ms (Views: 127.1ms | ActiveRecord: 77.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:13:23 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (10.0ms) Rendered layouts/_header-admin.html.erb (5.3ms)
Completed 200 OK in 84ms (Views: 77.6ms | ActiveRecord: 1.2ms)
Started DELETE “/rooms/183” for 127.0.0.1 at 2018-12-03 15:13:30 -0200 Processing by RoomsController#destroy as HTML
Parameters: {"authenticity_token"=>"M/PvTyji+oQpGIvJ3nxda0cPEzBf0t3SplyX+4f/vOyFkECgnJzBuXbCjjWJdg4/pz4MPyc7VEBjz1UX17IwJg==", "id"=>"183"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35mSQL (47.9ms)[0m [1m[31mDELETE FROM "rooms" WHERE "rooms"."id" = $1[0m [["id", 183]]
[1m[35m (27.9ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 302 Found in 87ms (ActiveRecord: 77.4ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:13:30 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (5.3ms) Rendered layouts/_header-admin.html.erb (4.1ms)
Completed 200 OK in 77ms (Views: 60.3ms | ActiveRecord: 0.8ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:13:31 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (53.1ms)
Completed 500 Internal Server Error in 58ms (ActiveRecord: 1.2ms)
ActionView::Template::Error (undefined method `name' for nil:NilClass):
7: <% @i = 0 %>
8: <% @j = 0 %>
9: <% @appointments.each do |appointment| %>
10: <% @array[@i] = [[appointment.appointment_date.strftime("%d/%m/%Y")],[appointment.start_time.strftime("%H:%M")],[appointment.room.name]] %>
11: <% @i += 1 %>
12: <% end %>
13:
app/views/appointments/all_appointments.html.erb:10:in `block in _app_views_appointments_all_appointments_html_erb___2357620936022490311_40980440' app/views/appointments/all_appointments.html.erb:9:in `_app_views_appointments_all_appointments_html_erb___2357620936022490311_40980440' Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:13:43 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (10.2ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.0ms)
ActionView::Template::Error (undefined method `name' for nil:NilClass):
7: <% @i = 0 %>
8: <% @j = 0 %>
9: <% @appointments.each do |appointment| %>
10: <% @array[@i] = [[appointment.appointment_date.strftime("%d/%m/%Y")],[appointment.start_time.strftime("%H:%M")],[appointment.room.name]] %>
11: <% @i += 1 %>
12: <% end %>
13:
app/views/appointments/all_appointments.html.erb:10:in `block in _app_views_appointments_all_appointments_html_erb___2357620936022490311_42092080' app/views/appointments/all_appointments.html.erb:9:in `_app_views_appointments_all_appointments_html_erb___2357620936022490311_42092080' Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:13:58 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (5.9ms) Rendered layouts/_header-admin.html.erb (4.4ms)
Completed 200 OK in 71ms (Views: 67.7ms | ActiveRecord: 0.7ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:14:00 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (7.3ms) Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 59ms (Views: 53.1ms | ActiveRecord: 1.1ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:14:01 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 183], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (11.1ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.9ms)
ActionView::Template::Error (undefined method `name' for nil:NilClass):
7: <% @i = 0 %>
8: <% @j = 0 %>
9: <% @appointments.each do |appointment| %>
10: <% @array[@i] = [[appointment.appointment_date.strftime("%d/%m/%Y")],[appointment.start_time.strftime("%H:%M")],[appointment.room.name]] %>
11: <% @i += 1 %>
12: <% end %>
13:
app/views/appointments/all_appointments.html.erb:10:in `block in _app_views_appointments_all_appointments_html_erb___2357620936022490311_70133976018000' app/views/appointments/all_appointments.html.erb:9:in `_app_views_appointments_all_appointments_html_erb___2357620936022490311_70133976018000' Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:14:18 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (7.7ms) Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 68ms (Views: 61.7ms | ActiveRecord: 1.4ms)
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (39.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
[1m[35m (353.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "Reserva-de-Salas_development"[0m
[1m[35m (397.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "Reserva-de-Salas_test"[0m
[1m[35m (135.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
[1m[35m (128.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(6530939546169874185)[0m
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Migrating to DeviseCreateUsers (20180521225625)
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (73.7ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" inet, "last_sign_in_ip" inet, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
[1m[35m (69.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
[1m[35m (55.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180521225625"]]
[1m[35m (19.6ms)[0m [1m[35mCOMMIT[0m
Migrating to AddFieldsUsers (20180521230417)
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (10.8ms)[0m [1m[35mALTER TABLE "users" ADD "username" character varying[0m
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "users" ADD "registration" character varying[0m
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "users" ADD "course" character varying[0m
[1m[35m (193.6ms)[0m [1m[35mALTER TABLE "users" ADD "is_admin" boolean DEFAULT 'f'[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180521230417"]]
[1m[35m (21.5ms)[0m [1m[35mCOMMIT[0m
Migrating to CreateRooms (20180604205706)
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (94.9ms)[0m [1m[35mCREATE TABLE "rooms" ("id" bigserial primary key, "name" character varying, "location" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180604205706"]]
[1m[35m (102.2ms)[0m [1m[35mCOMMIT[0m
Migrating to CreateAppointments (20180606194001)
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (263.2ms)[0m [1m[35mCREATE TABLE "appointments" ("id" bigserial primary key, "appointment_date" timestamp, "start_time" time, "status" integer, "user_id" bigint, "room_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
[1m[35m (53.6ms)[0m [1m[35mCREATE INDEX "index_appointments_on_user_id" ON "appointments" ("user_id")[0m
[1m[35m (41.9ms)[0m [1m[35mCREATE INDEX "index_appointments_on_room_id" ON "appointments" ("room_id")[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180606194001"]]
[1m[35m (18.3ms)[0m [1m[35mCOMMIT[0m
Migrating to AddResetToUser (20181028154228)
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "users" ADD "reset_digest" character varying[0m
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "users" ADD "reset_sent_at" timestamp[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20181028154228"]]
[1m[35m (17.0ms)[0m [1m[35mCOMMIT[0m
Migrating to AddTipoSalaToRoom (20181104170539)
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "rooms" ADD "tipo_sala" character varying[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20181104170539"]]
[1m[35m (6.7ms)[0m [1m[35mCOMMIT[0m
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-12-03 17:15:11.306169"], ["updated_at", "2018-12-03 17:15:11.306169"]]
[1m[35m (5.2ms)[0m [1m[35mCOMMIT[0m
[1m[35m (1.0ms)[0m [1m[34mSELECT pg_advisory_unlock(6530939546169874185)[0m
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[36mUser Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "admin@admin.admin"], ["encrypted_password", "$2a$11$3a0e8/7hIb9g1RBaeriOVe0KvkuE2TRLZUjVlpYbYVUFFb3wRw7WO"], ["created_at", "2018-12-03 17:15:11.684408"], ["updated_at", "2018-12-03 17:15:11.684408"], ["username", "rootadmin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
[1m[35m (28.7ms)[0m [1m[35mCOMMIT[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@teste.teste"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@teste.teste"], ["encrypted_password", "$2a$11$I0O3mPBl8lNDgsTaI0hep.APKYJ9zW8Wym89qusPPQzQ/bZQuxaPO"], ["created_at", "2018-12-03 17:15:11.884801"], ["updated_at", "2018-12-03 17:15:11.884801"], ["username", "teste"], ["registration", "teste000"], ["course", "TESTE"]]
[1m[35m (6.6ms)[0m [1m[35mCOMMIT[0m
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:15:46 -0200
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (1.1ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendered appointments/all_appointments.html.erb within layouts/application (17.2ms) [1m[36mUser Load (1.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Completed 200 OK in 496ms (Views: 461.5ms | ActiveRecord: 11.1ms)
Started GET “/” for 127.0.0.1 at 2018-12-03 15:15:49 -0200 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home Rendered home/index.html.erb within layouts/home (1.6ms)
Completed 200 OK in 63ms (Views: 58.5ms | ActiveRecord: 0.0ms)
Started GET “/login” for 127.0.0.1 at 2018-12-03 15:15:51 -0200 Processing by Users::SessionsController#new as HTML
Rendering users/sessions/new.html.erb within layouts/application Rendered layouts/_login-form.html.erb (137.4ms) Rendered users/sessions/new.html.erb within layouts/application (244.7ms)
Completed 200 OK in 333ms (Views: 313.5ms | ActiveRecord: 0.0ms)
Started POST “/login” for 127.0.0.1 at 2018-12-03 15:15:58 -0200 Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Krp+tKL5BKB+jnczRIX3mTFY+8fPW2eAwUj8eGBxMwgD/GacUELPEx2HTaVKKY/OhOLeyrzYVbEABFu0iND6nA==", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
[1m[36mUser Load (1.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "admin@admin.admin"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["current_sign_in_at", "2018-12-03 17:15:58.392250"], ["last_sign_in_at", "2018-12-03 17:15:58.392250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-03 17:15:58.393904"], ["id", 1]]
[1m[35m (14.9ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 302 Found in 350ms (ActiveRecord: 17.1ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:15:58 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.9ms) Rendered layouts/_header-admin.html.erb (5.4ms)
Completed 200 OK in 68ms (Views: 65.9ms | ActiveRecord: 0.9ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:16:00 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendered appointments/all_appointments.html.erb within layouts/application (9.5ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (6.1ms)
Completed 200 OK in 77ms (Views: 73.1ms | ActiveRecord: 1.3ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:16:01 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (10.6ms) Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 78ms (Views: 52.7ms | ActiveRecord: 4.4ms)
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-03 15:16:07 -0200 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (31.4ms) Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 118ms (Views: 83.6ms | ActiveRecord: 2.3ms)
Started POST “/rooms” for 127.0.0.1 at 2018-12-03 15:16:24 -0200 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"k9ULQ2Hn31wSp4umCmK4T3MWfiB25GdyWTXY1WwblSaxERLTDadxV9Pjy5r0ovy+XW1JS56C7BHyOGQik9Yk5A==", "room"=>{"name"=>"Lab 1", "location"=>"At-441", "tipo_sala"=>"Laboratórios"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35m (3.9ms)[0m [1m[35mBEGIN[0m
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Lab 1"], ["location", "At-441"], ["created_at", "2018-12-03 17:16:24.628479"], ["updated_at", "2018-12-03 17:16:24.628479"], ["tipo_sala", "Laboratórios"]]
[1m[35m (40.5ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 302 Found in 57ms (ActiveRecord: 46.2ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:16:24 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (5.5ms) Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 57ms (Views: 55.0ms | ActiveRecord: 0.6ms)
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-03 15:16:26 -0200 Processing by RoomsController#new as HTML
Parameters: {"authenticity_token"=>"L4FFcrYyAcOF8aPhisK5ugelbmSE8FzesJX8M8W7ATc2GCYPQcS/e8Y5fftep80yiE8l5Lv/La5stl+kC5nFaA=="}
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 64ms (Views: 59.2ms | ActiveRecord: 0.7ms)
Started POST “/rooms” for 127.0.0.1 at 2018-12-03 15:16:44 -0200 Processing by RoomsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"m3/AWNa9H8I+Up2KkNzBu49SwJGqfu9DLfDUntclrceC5qMlIUuhen2aQ5BEubUzALiLEZVxnjPx03cJGQdpmA==", "room"=>{"name"=>"Auditorio", "location"=>"Bt-921", "tipo_sala"=>"Auditórios"}, "commit"=>"Criar Sala"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Auditorio"], ["location", "Bt-921"], ["created_at", "2018-12-03 17:16:44.265184"], ["updated_at", "2018-12-03 17:16:44.265184"], ["tipo_sala", "Auditórios"]]
[1m[35m (41.6ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 302 Found in 53ms (ActiveRecord: 43.5ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:16:44 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (1.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (7.5ms) Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 76ms (Views: 72.2ms | ActiveRecord: 1.7ms)
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-03 15:16:45 -0200 Processing by RoomsController#new as HTML
Parameters: {"authenticity_token"=>"s0rKue2tQVcVLzhqJh0hfeKefNph7fvok+rOs7zYEBGq06nEGlv/71bn5nDyeFX1bXQ3Wl7iiphPyW0kcvrUTg=="}
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.8ms)
Rendered layouts/_header-admin.html.erb (4.2ms)
Completed 200 OK in 76ms (Views: 70.4ms | ActiveRecord: 0.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:16:48 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (1.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (13.1ms) Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 70ms (Views: 62.8ms | ActiveRecord: 2.1ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:16:51 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m Rendered appointments/all_appointments.html.erb within layouts/application (5.7ms) [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 58ms (Views: 54.9ms | ActiveRecord: 1.3ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:16:52 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (1.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (12.6ms) Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 85ms (Views: 78.1ms | ActiveRecord: 2.4ms)
Started GET “/appointments/1” for 127.0.0.1 at 2018-12-03 15:16:53 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')[0m
Rendered appointments/show.html.erb within layouts/application (22.7ms)
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 107ms (Views: 71.3ms | ActiveRecord: 2.5ms)
Started POST “/appointments.1” for 127.0.0.1 at 2018-12-03 15:16:57 -0200 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "authenticity_token"=>"MWb2frEqbLJ6bL3rGyW/YkmxNjshP9hVK5fDKPeIWpmmxdNcH2Ta1b6JmKMfNWeY+hPyr/A931gtSB58d7B8IQ==", "appointment_date"=>"2018-12-03", "start_time"=>"6:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-12-03 00:00:00"], ["start_time", "06:00:00"], ["status", 2], ["user_id", 1], ["room_id", 1], ["created_at", "2018-12-03 17:16:57.979892"], ["updated_at", "2018-12-03 17:16:57.979892"]]
[1m[35m (27.6ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 200 OK in 100ms (ActiveRecord: 33.1ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:16:58 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (6.3ms) Rendered layouts/_header-admin.html.erb (6.0ms)
Completed 200 OK in 105ms (Views: 102.2ms | ActiveRecord: 0.8ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:17:00 -0200 Processing by RoomsController#index as HTML
Parameters: {"authenticity_token"=>"667q8YHyzjXHXw8FOH4Gyaq5KqXwtZ8PZQokTo9eTpHyN4mMdgRwjYSX0R/sG3JBJVNhJc+67n+5KYfZQXyKzg=="}
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/index.html.erb within layouts/application (9.8ms)
Rendered layouts/_header-admin.html.erb (4.4ms)
Completed 200 OK in 67ms (Views: 60.5ms | ActiveRecord: 1.5ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:17:02 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (13.0ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 64ms (Views: 59.4ms | ActiveRecord: 2.7ms)
Started GET “/” for 127.0.0.1 at 2018-12-03 15:17:12 -0200 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (4.2ms) Rendered layouts/_header-user.html.erb (3.8ms)
Completed 200 OK in 100ms (Views: 98.0ms | ActiveRecord: 0.5ms)
Started GET “/users/1/edit” for 127.0.0.1 at 2018-12-03 15:17:13 -0200 Processing by Users::RegistrationsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.9ms)
Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 75ms (Views: 70.6ms | ActiveRecord: 0.8ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:17:15 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (3.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (14.7ms) [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 101ms (Views: 94.2ms | ActiveRecord: 4.8ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:17:17 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (1.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (12.5ms) Rendered layouts/_header-admin.html.erb (4.0ms)
Completed 200 OK in 91ms (Views: 84.1ms | ActiveRecord: 2.5ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:17:22 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (12.4ms) Rendered layouts/_header-admin.html.erb (3.9ms)
Completed 200 OK in 80ms (Views: 73.4ms | ActiveRecord: 1.3ms)
Started GET “/” for 127.0.0.1 at 2018-12-03 15:17:26 -0200 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (4.1ms) Rendered layouts/_header-user.html.erb (5.8ms)
Completed 200 OK in 72ms (Views: 70.0ms | ActiveRecord: 0.6ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:17:28 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (10.3ms) Rendered layouts/_header-admin.html.erb (4.2ms)
Completed 200 OK in 79ms (Views: 73.0ms | ActiveRecord: 1.5ms)
Started GET “/appointments/1” for 127.0.0.1 at 2018-12-03 15:17:32 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')[0m
Rendered appointments/show.html.erb within layouts/application (17.8ms)
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 72ms (Views: 67.0ms | ActiveRecord: 2.0ms)
Started POST “/appointments.1” for 127.0.0.1 at 2018-12-03 15:17:38 -0200 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "authenticity_token"=>"zzP0U4ESUVpyaj6glkVFXAuj8n91egzdp2xihe1MNsZYkNFxL1znPbaPG+iSVZ2muAE266R4C9Chs7/RbXQQfg==", "appointment_date"=>"2018-12-03", "start_time"=>"6:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-12-03 00:00:00"], ["start_time", "06:00:00"], ["status", 1], ["user_id", 1], ["room_id", 1], ["created_at", "2018-12-03 17:17:38.947220"], ["updated_at", "2018-12-03 17:17:38.947220"]]
[1m[35m (21.2ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 200 OK in 37ms (ActiveRecord: 24.1ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:17:38 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (6.0ms) Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 63ms (Views: 60.1ms | ActiveRecord: 0.8ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:17:40 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (22.7ms) [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (6.4ms)
Completed 200 OK in 91ms (Views: 87.1ms | ActiveRecord: 1.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:17:58 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (8.6ms) Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 63ms (Views: 57.5ms | ActiveRecord: 1.3ms)
Started GET “/appointments/2” for 127.0.0.1 at 2018-12-03 15:18:01 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2')[0m
Rendered appointments/show.html.erb within layouts/application (9.3ms)
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (4.1ms)
Completed 200 OK in 62ms (Views: 57.6ms | ActiveRecord: 1.7ms)
Started POST “/appointments.2” for 127.0.0.1 at 2018-12-03 15:18:08 -0200 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "authenticity_token"=>"frmVKYaRnK0yggPgCDJ4JRuTJ5/yY3YbYhad2Wa6pAZO4pGcUD5cOsPeONyPAhntxgQB2wBhwWcyFrEgkATUjw==", "appointment_date"=>"2018-12-03", "start_time"=>"6:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-12-03 00:00:00"], ["start_time", "06:00:00"], ["status", 2], ["user_id", 1], ["room_id", 2], ["created_at", "2018-12-03 17:18:08.572010"], ["updated_at", "2018-12-03 17:18:08.572010"]]
[1m[35m (29.4ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 200 OK in 49ms (ActiveRecord: 33.0ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 15:18:08 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (1.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (8.2ms) Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 99ms (Views: 94.1ms | ActiveRecord: 1.8ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:18:09 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (1.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (17.8ms) [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 67ms (Views: 62.9ms | ActiveRecord: 2.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:19:16 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (10.6ms) Rendered layouts/_header-admin.html.erb (3.0ms)
Completed 200 OK in 74ms (Views: 67.9ms | ActiveRecord: 1.5ms)
Started GET “/appointments/1” for 127.0.0.1 at 2018-12-03 15:19:18 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')[0m
Rendered appointments/show.html.erb within layouts/application (18.3ms)
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.5ms)
Completed 200 OK in 69ms (Views: 62.8ms | ActiveRecord: 1.7ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:19:20 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (2.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (14.3ms) Rendered layouts/_header-admin.html.erb (4.3ms)
Completed 200 OK in 88ms (Views: 79.7ms | ActiveRecord: 3.3ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:19:21 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (26.1ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 111ms (Views: 106.3ms | ActiveRecord: 2.8ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:31:59 -0200
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by RoomsController#index as HTML
[1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (268.3ms) Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 393ms (Views: 325.7ms | ActiveRecord: 13.8ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:32:01 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (7.9ms) Rendered layouts/_header-admin.html.erb (3.6ms)
Completed 200 OK in 58ms (Views: 51.7ms | ActiveRecord: 1.0ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:32:10 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (66.6ms) [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (8.3ms)
Completed 200 OK in 198ms (Views: 151.2ms | ActiveRecord: 8.7ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:32:14 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (14.4ms) Rendered layouts/_header-admin.html.erb (9.5ms)
Completed 200 OK in 131ms (Views: 123.9ms | ActiveRecord: 1.3ms)
Started GET “/” for 127.0.0.1 at 2018-12-03 15:32:21 -0200 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (7.3ms) Rendered layouts/_header-user.html.erb (4.2ms)
Completed 200 OK in 92ms (Views: 89.2ms | ActiveRecord: 0.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 15:32:25 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (12.1ms) Rendered layouts/_header-admin.html.erb (3.1ms)
Completed 200 OK in 92ms (Views: 85.8ms | ActiveRecord: 1.3ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 15:32:26 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (6.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (28.3ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 103ms (Views: 91.7ms | ActiveRecord: 9.0ms)
Started GET “/routes” for 127.0.0.1 at 2018-12-03 16:45:23 -0200
[1m[35m (17.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/routes” for 127.0.0.1 at 2018-12-03 16:52:42 -0200
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/routes” for 127.0.0.1 at 2018-12-03 16:59:09 -0200
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/appointments/new” for 127.0.0.1 at 2018-12-03 17:26:57 -0200
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by AppointmentsController#new as HTML
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", nil], ["LIMIT", 1]]
Completed 404 Not Found in 67ms (ActiveRecord: 13.9ms)
ActiveRecord::RecordNotFound (Couldn't find Room with 'id'=):
app/controllers/appointments_controller.rb:4:in `new' Started GET “/appointments/new/1” for 127.0.0.1 at 2018-12-03 17:27:10 -0200
ActionController::RoutingError (No route matches [GET] “/appointments/new/1”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/appointments/1/new/” for 127.0.0.1 at 2018-12-03 17:27:19 -0200
ActionController::RoutingError (No route matches [GET] “/appointments/1/new”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/appointments/” for 127.0.0.1 at 2018-12-03 17:27:28 -0200
AbstractController::ActionNotFound (The action 'index' could not be found for AppointmentsController):
actionpack (5.1.6) lib/abstract_controller/base.rb:119:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:25:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “//appointments/new” for 127.0.0.1 at 2018-12-03 17:32:10 -0200
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by AppointmentsController#new as HTML
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", nil], ["LIMIT", 1]]
Completed 404 Not Found in 50ms (ActiveRecord: 12.5ms)
ActiveRecord::RecordNotFound (Couldn't find Room with 'id'=):
app/controllers/appointments_controller.rb:4:in `new' Started GET “/routes” for 127.0.0.1 at 2018-12-03 17:42:45 -0200
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/appointments/new” for 127.0.0.1 at 2018-12-03 17:44:35 -0200
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by AppointmentsController#new as HTML
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", nil], ["LIMIT", 1]]
Completed 404 Not Found in 68ms (ActiveRecord: 14.0ms)
ActiveRecord::RecordNotFound (Couldn't find Room with 'id'=):
app/controllers/appointments_controller.rb:4:in `new' Started GET “/appointments/new/1” for 127.0.0.1 at 2018-12-03 17:44:39 -0200 Processing by AppointmentsController#new as HTML
Parameters: {"id"=>"1"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Completed 406 Not Acceptable in 39ms (ActiveRecord: 0.6ms)
ActionController::UnknownFormat (AppointmentsController#new is missing a template for this request format and variant.
request.formats: [“text/html”] request.variant: []
NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.):
actionpack (5.1.6) lib/action_controller/metal/implicit_render.rb:53:in `default_render' actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' actionpack (5.1.6) lib/abstract_controller/base.rb:186:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rendering.rb:30:in `process_action' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (5.1.6) lib/active_support/callbacks.rb:131:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:25:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/appointments/new/1” for 127.0.0.1 at 2018-12-03 17:48:24 -0200
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/appointments/new/1”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:48:30 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (402.8ms) Rendered layouts/_header-admin.html.erb (7.1ms)
Completed 200 OK in 1254ms (Views: 1174.4ms | ActiveRecord: 13.0ms)
Started GET “/appointments/1” for 127.0.0.1 at 2018-12-03 17:48:34 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (1.3ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')[0m
Rendered appointments/show.html.erb within layouts/application (52.6ms)
[1m[36mUser Load (1.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (6.4ms)
Completed 200 OK in 165ms (Views: 142.1ms | ActiveRecord: 8.3ms)
Started POST “/appointments.1” for 127.0.0.1 at 2018-12-03 17:48:44 -0200 Processing by AppointmentsController#create as
Parameters: {"utf8"=>"✓", "authenticity_token"=>"tGgngzUYkIWfSpKkyT8cD+O6w273S/juVBdZL0X5weIjywKhm1Ym4luvt+zNL8T1UBgH+iZJ/+NSyIR7xcHnWg==", "appointment_date"=>"2018-12-04", "start_time"=>"6:00", "commit"=>"Alugar"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-12-04 00:00:00"], ["start_time", "06:00:00"], ["status", 2], ["user_id", 1], ["room_id", 1], ["created_at", "2018-12-03 19:48:44.744032"], ["updated_at", "2018-12-03 19:48:44.744032"]]
[1m[35m (9.9ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/backoffice Completed 200 OK in 72ms (ActiveRecord: 13.1ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 17:48:44 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.5ms) Rendered layouts/_header-admin.html.erb (3.2ms)
Completed 200 OK in 160ms (Views: 57.4ms | ActiveRecord: 0.6ms)
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-03 17:48:47 -0200 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1]] Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms) Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 65ms (Views: 52.2ms | ActiveRecord: 1.2ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:48:54 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (7.9ms) Rendered layouts/_header-admin.html.erb (3.9ms)
Completed 200 OK in 69ms (Views: 63.3ms | ActiveRecord: 1.1ms)
Started GET “/appointments/1” for 127.0.0.1 at 2018-12-03 17:48:57 -0200 Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')[0m
Rendered appointments/show.html.erb within layouts/application (24.8ms)
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 91ms (Views: 85.9ms | ActiveRecord: 1.6ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 17:49:00 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (20.2ms) [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (12.1ms)
Completed 200 OK in 92ms (Views: 75.4ms | ActiveRecord: 3.2ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:49:05 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (10.1ms) Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 73ms (Views: 66.4ms | ActiveRecord: 1.3ms)
Started GET “/rooms/1” for 127.0.0.1 at 2018-12-03 17:49:15 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (3.3ms)
Completed 200 OK in 86ms (Views: 50.9ms | ActiveRecord: 1.3ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 17:50:13 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (121.0ms) [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (4.7ms)
Completed 200 OK in 184ms (Views: 155.8ms | ActiveRecord: 23.8ms)
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-03 17:50:16 -0200 Processing by AppointmentsController#my_appointments as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 1]] Rendered appointments/my_appointments.html.erb within layouts/application (8.3ms) Rendered layouts/_header-admin.html.erb (4.3ms)
Completed 200 OK in 112ms (Views: 103.8ms | ActiveRecord: 1.3ms)
Started GET “/search-rooms” for 127.0.0.1 at 2018-12-03 17:50:18 -0200 Processing by RoomsController#search_rooms as HTML
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/search_rooms.html.erb within layouts/application Rendered rooms/search_rooms.html.erb within layouts/application (5.3ms) Rendered layouts/_header-admin.html.erb (7.8ms)
Completed 200 OK in 127ms (Views: 122.2ms | ActiveRecord: 0.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:50:20 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (20.3ms) Rendered layouts/_header-admin.html.erb (5.4ms)
Completed 200 OK in 128ms (Views: 120.1ms | ActiveRecord: 1.3ms)
Started GET “/rooms/new” for 127.0.0.1 at 2018-12-03 17:50:21 -0200 Processing by RoomsController#new as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/new.html.erb within layouts/application Rendered rooms/new.html.erb within layouts/application (149.4ms) Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 230ms (Views: 195.6ms | ActiveRecord: 0.8ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 17:50:23 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (29.8ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (4.0ms)
Completed 200 OK in 113ms (Views: 106.3ms | ActiveRecord: 2.9ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:50:24 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (9.5ms) Rendered layouts/_header-admin.html.erb (4.5ms)
Completed 200 OK in 81ms (Views: 74.7ms | ActiveRecord: 1.2ms)
Started GET “/backoffice” for 127.0.0.1 at 2018-12-03 17:50:26 -0200 Processing by Backoffice::DashboardController#index as HTML
Rendering backoffice/dashboard/index.html.erb within layouts/backoffice [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.4ms) Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 64ms (Views: 61.7ms | ActiveRecord: 0.6ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:50:31 -0200 Processing by RoomsController#index as HTML
Parameters: {"authenticity_token"=>"8i/Tig7Y5cjHHefFNYODAzFGeXa5yKW2I+SpjWw47CzrtrD3+S5bcITVOd/h5veLvqwy9obH1Mb/xwoaohoocw=="}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m
Rendered rooms/index.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 64ms (Views: 57.0ms | ActiveRecord: 1.3ms)
Started GET “/rooms/1” for 127.0.0.1 at 2018-12-03 17:50:34 -0200 Processing by RoomsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (4.2ms)
Completed 200 OK in 61ms (Views: 52.5ms | ActiveRecord: 1.2ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 17:50:35 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (1.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (11.7ms) Rendered layouts/_header-admin.html.erb (3.8ms)
Completed 200 OK in 79ms (Views: 72.1ms | ActiveRecord: 2.0ms)
Started GET “/routes” for 127.0.0.1 at 2018-12-03 17:54:36 -0200
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/routes” for 127.0.0.1 at 2018-12-03 18:03:47 -0200
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/appointments/new” for 127.0.0.1 at 2018-12-03 18:03:56 -0200 Processing by AppointmentsController#new as HTML
Rendering appointments/new.html.erb within layouts/application Rendered appointments/new.html.erb within layouts/application (0.4ms) [1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (9.7ms)
Completed 200 OK in 943ms (Views: 908.0ms | ActiveRecord: 12.7ms)
Started GET “/appointments/new” for 127.0.0.1 at 2018-12-03 18:04:35 -0200 Processing by AppointmentsController#new as HTML Completed 406 Not Acceptable in 39ms (ActiveRecord: 0.0ms)
ActionController::UnknownFormat (AppointmentsController#new is missing a template for this request format and variant.
request.formats: [“text/html”] request.variant: []
NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.):
actionpack (5.1.6) lib/action_controller/metal/implicit_render.rb:53:in `default_render' actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action' actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap' actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' actionpack (5.1.6) lib/abstract_controller/base.rb:186:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rendering.rb:30:in `process_action' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (5.1.6) lib/active_support/callbacks.rb:131:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:25:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/1/edit” for 127.0.0.1 at 2018-12-03 18:18:01 -0200
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/1/edit”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$s7k8pL/4MfrC2tJ.U0fB/O4uEUzlXs4w1/iDYhWJo2Hwn7pUQQg56"], ["created_at", "2018-12-03 20:56:52.235022"], ["updated_at", "2018-12-03 20:56:52.235022"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (4.1ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:52.272500"], ["updated_at", "2018-12-03 20:56:52.272500"], ["tipo_sala", "palestras"]]
[1m[35m (7.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:52 -0200
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:52.409773"], ["last_sign_in_at", "2018-12-03 20:56:52.409773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:52.411496"], ["id", 3]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.8ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 3], ["LIMIT", 1]]
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Jss1g5Ouc4P.QjJcGJsAJu7EodoKCuRNpnWpJgEz.lFanofFYPykO"], ["created_at", "2018-12-03 20:56:53.656335"], ["updated_at", "2018-12-03 20:56:53.656335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:53.662510"], ["updated_at", "2018-12-03 20:56:53.662510"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:53 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:53.672259"], ["last_sign_in_at", "2018-12-03 20:56:53.672259"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:53.674331"], ["id", 4]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"4"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:16:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sbwxEJdn3QvqoJQwpD/3JOQLG1Ch9wM3ElXRDWZ03M8s.O5f1GiJe"], ["created_at", "2018-12-03 20:56:54.270928"], ["updated_at", "2018-12-03 20:56:54.270928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:54.275322"], ["updated_at", "2018-12-03 20:56:54.275322"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:54 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:54.283311"], ["last_sign_in_at", "2018-12-03 20:56:54.283311"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:54.284963"], ["id", 5]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"5", "user_id"=>"5"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:54 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"5", "user_id"=>"5"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$LFCg.s5IAKkm/TkRyuErDOaVJoIARV4JNwWfETM9KTaDtxcKcsFX."], ["created_at", "2018-12-03 20:56:55.294717"], ["updated_at", "2018-12-03 20:56:55.294717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:55.298949"], ["updated_at", "2018-12-03 20:56:55.298949"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:55 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:55.304906"], ["last_sign_in_at", "2018-12-03 20:56:55.304906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:55.305933"], ["id", 6]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"6", "user_id"=>"6"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:55 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"6", "user_id"=>"6"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 6], ["user_id", 6], ["status", 2], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$t21Do2sJdacCvmd3nQ/f8eC9o.DWZKTGiDqtLi7z6gXy9elWEI7YK"], ["created_at", "2018-12-03 20:56:56.068630"], ["updated_at", "2018-12-03 20:56:56.068630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:56.075077"], ["updated_at", "2018-12-03 20:56:56.075077"], ["tipo_sala", "palestras"]]
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:56 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:56.083458"], ["last_sign_in_at", "2018-12-03 20:56:56.083458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:56.084505"], ["id", 7]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7", "user_id"=>"7"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:32:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>' Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:56 -0200 Processing by AppointmentsController#create as
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7", "user_id"=>"7"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:33:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5[0m [["appointment_date", "22-06-2018"], ["room_id", 7], ["user_id", 7], ["status", 1], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$WYgqNTzZwZkNuMwxdX7Qcer8Yi4qgxGZMX2jYDjJf19mF1/KhVqQy"], ["created_at", "2018-12-03 20:56:56.852250"], ["updated_at", "2018-12-03 20:56:56.852250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:56.856762"], ["updated_at", "2018-12-03 20:56:56.856762"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:56 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:56.861641"], ["last_sign_in_at", "2018-12-03 20:56:56.861641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:56.862454"], ["id", 8]] [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3[0m [["appointment_date", "22-06-2018"], ["room_id", 8], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$YhnRJ14UxOZHnRismVBABOC4Ra6U9bkP4foOcBEYCHzofAGtw50au"], ["created_at", "2018-12-03 20:56:57.441339"], ["updated_at", "2018-12-03 20:56:57.441339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:57.448470"], ["updated_at", "2018-12-03 20:56:57.448470"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started POST “/appointments” for 127.0.0.1 at 2018-12-03 18:56:57 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:57.459154"], ["last_sign_in_at", "2018-12-03 20:56:57.459154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:57.460869"], ["id", 9]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#create as HTML
Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:22:in `post' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:51:in `block (5 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$oiQE1BMB0Ffa8Jqvwjp5t.FyWvH/oQbXpqyvHAzhp6VDqk/ySN5nC"], ["created_at", "2018-12-03 20:56:58.090567"], ["updated_at", "2018-12-03 20:56:58.090567"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:56:58.094656"], ["updated_at", "2018-12-03 20:56:58.094656"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.8ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 10], ["LIMIT", 1]]
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 10], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10], ["room_id", 10], ["created_at", "2018-12-03 20:56:58.187342"], ["updated_at", "2018-12-03 20:56:58.187342"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/appointments/10” for 127.0.0.1 at 2018-12-03 18:56:58 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:56:58.192566"], ["last_sign_in_at", "2018-12-03 20:56:58.192566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:56:58.193574"], ["id", 10]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#show as HTML
Parameters: {"id"=>"10"}
[1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 10], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
[1m[36mAppointment Load (0.9ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '10')[0m
Rendered appointments/show.html.erb within layouts/application (20.8ms)
Rendered layouts/_header-user.html.erb (336.2ms)
Completed 200 OK in 6576ms (Views: 6571.1ms | ActiveRecord: 1.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$sYDwDKRxshK1nCHwVBDE0uwwFXps2/.CAOQPfIPshMD38BEHRpCtC"], ["created_at", "2018-12-03 20:57:04.985960"], ["updated_at", "2018-12-03 20:57:04.985960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:57:04.990054"], ["updated_at", "2018-12-03 20:57:04.990054"], ["tipo_sala", "palestras"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 11], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 11], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11], ["room_id", 11], ["created_at", "2018-12-03 20:57:04.998193"], ["updated_at", "2018-12-03 20:57:04.998193"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 11], ["LIMIT", 1]]
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 11], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11], ["room_id", 11], ["created_at", "2018-12-03 20:57:05.006957"], ["updated_at", "2018-12-03 20:57:05.006957"]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-03 18:57:05 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:57:05.011748"], ["last_sign_in_at", "2018-12-03 20:57:05.011748"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:57:05.012717"], ["id", 11]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 11]] Rendered appointments/my_appointments.html.erb within layouts/application (5.5ms) Rendered layouts/_header-user.html.erb (3.4ms)
Completed 200 OK in 63ms (Views: 53.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$Px8ZX5hO9QWxUBHgSbaDbeG/3WIAV9vnUUDqTIwLh/Th8eAox8FU2"], ["created_at", "2018-12-03 20:57:05.243950"], ["updated_at", "2018-12-03 20:57:05.243950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:57:05.248131"], ["updated_at", "2018-12-03 20:57:05.248131"], ["tipo_sala", "palestras"]]
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 12], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 12], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12], ["room_id", 12], ["created_at", "2018-12-03 20:57:05.254670"], ["updated_at", "2018-12-03 20:57:05.254670"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 12], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 12], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12], ["room_id", 12], ["created_at", "2018-12-03 20:57:05.262475"], ["updated_at", "2018-12-03 20:57:05.262475"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/my-appointments” for 127.0.0.1 at 2018-12-03 18:57:05 -0200
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:57:05.267284"], ["last_sign_in_at", "2018-12-03 20:57:05.267284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:57:05.268190"], ["id", 12]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#my_appointments as HTML
Rendering appointments/my_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1[0m [["user_id", 12]] Rendered appointments/my_appointments.html.erb within layouts/application (3.9ms) Rendered layouts/_header-user.html.erb (4.0ms)
Completed 200 OK in 55ms (Views: 53.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$CGAJjQVlPFgx2vkpkHvxWurd0h2mpwHDXckKZCz4B0uyPd0ZzwPa2"], ["created_at", "2018-12-03 20:57:05.492225"], ["updated_at", "2018-12-03 20:57:05.492225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:57:05.496385"], ["updated_at", "2018-12-03 20:57:05.496385"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.2ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 13], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 13], ["LIMIT", 1]]
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 13], ["room_id", 13], ["created_at", "2018-12-03 20:57:05.503272"], ["updated_at", "2018-12-03 20:57:05.503272"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started DELETE “/appointments/10” for 127.0.0.1 at 2018-12-03 18:57:05 -0200
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:57:05.508070"], ["last_sign_in_at", "2018-12-03 20:57:05.508070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:57:05.509372"], ["id", 13]] [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#destroy as HTML
Parameters: {"id"=>"10"}
Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:195:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:227:in `handle_unverified_request' devise (4.4.3) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' actionpack (5.1.6) lib/action_controller/metal/request_forgery_protection.rb:222:in `verify_authenticity_token' activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda' activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>' activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each' activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before' activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks' actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument' activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument' actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action' activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action' actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process' actionview (5.1.6) lib/action_view/rendering.rb:30:in `process' actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch' actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each' actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve' actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call' warden (1.2.7) lib/warden/manager.rb:36:in `block in call' warden (1.2.7) lib/warden/manager.rb:35:in `catch' warden (1.2.7) lib/warden/manager.rb:35:in `call' rack (2.0.5) lib/rack/etag.rb:25:in `call' rack (2.0.5) lib/rack/conditional_get.rb:38:in `call' rack (2.0.5) lib/rack/head.rb:12:in `call' rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call' activerecord (5.1.6) lib/active_record/migration.rb:556:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks' actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' rack-test (1.0.0) lib/rack/mock_session.rb:29:in `request' rack-test (1.0.0) lib/rack/test.rb:259:in `process_request' rack-test (1.0.0) lib/rack/test.rb:119:in `request' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:261:in `process' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:40:in `delete' actionpack (5.1.6) lib/action_dispatch/testing/integration.rb:348:in `block (2 levels) in <module:Runner>' rails-controller-testing (1.0.2) lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>' spec/request/appointments_spec.rb:110:in `block (4 levels) in <top (required)>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:350:in `run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:595:in `block in run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `reverse_each' rspec-core (3.7.1) lib/rspec/core/hooks.rb:594:in `run_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:464:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:494:in `run_before_example' rspec-core (3.7.1) lib/rspec/core/example.rb:253:in `block in run' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `block in run' rspec-core (3.7.1) lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-rails (3.7.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/example.rb:447:in `instance_exec' rspec-core (3.7.1) lib/rspec/core/hooks.rb:375:in `execute_with' rspec-core (3.7.1) lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/example.rb:342:in `call' rspec-core (3.7.1) lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for' rspec-core (3.7.1) lib/rspec/core/hooks.rb:466:in `run' rspec-core (3.7.1) lib/rspec/core/example.rb:457:in `with_around_example_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' rspec-core (3.7.1) lib/rspec/core/example.rb:251:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:628:in `block in run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:624:in `run_examples' rspec-core (3.7.1) lib/rspec/core/example_group.rb:590:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `block in run' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `map' rspec-core (3.7.1) lib/rspec/core/example_group.rb:591:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `map' rspec-core (3.7.1) lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs' rspec-core (3.7.1) lib/rspec/core/configuration.rb:1926:in `with_suite_hooks' rspec-core (3.7.1) lib/rspec/core/runner.rb:113:in `block in run_specs' rspec-core (3.7.1) lib/rspec/core/reporter.rb:79:in `report' rspec-core (3.7.1) lib/rspec/core/runner.rb:112:in `run_specs' rspec-core (3.7.1) lib/rspec/core/runner.rb:87:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:71:in `run' rspec-core (3.7.1) lib/rspec/core/runner.rb:45:in `invoke' rspec-core (3.7.1) exe/rspec:4:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/rspec:23:in `<top (required)>' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `load' bundler (1.17.1) lib/bundler/cli/exec.rb:74:in `kernel_load' bundler (1.17.1) lib/bundler/cli/exec.rb:28:in `run' bundler (1.17.1) lib/bundler/cli.rb:463:in `exec' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' bundler (1.17.1) lib/bundler/cli.rb:27:in `dispatch' bundler (1.17.1) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' bundler (1.17.1) lib/bundler/cli.rb:18:in `start' bundler (1.17.1) exe/bundle:30:in `block in <top (required)>' bundler (1.17.1) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' bundler (1.17.1) exe/bundle:22:in `<top (required)>' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `load' /home/lucas/.rvm/gems/ruby-2.4.4/bin/bundle:23:in `<main>'
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2[0m [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$gzWJffJustN9VIsmjhlq2.DQXGwQSJNcllhTI59T0TCl7kyxBWOH."], ["created_at", "2018-12-03 20:57:06.011987"], ["updated_at", "2018-12-03 20:57:06.011987"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:57:06.017592"], ["updated_at", "2018-12-03 20:57:06.017592"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$QTBVR/e6G4qnsVk.WfKp9.FK.oO6FhsETqvtvUPS0T09h.biG4e6u"], ["created_at", "2018-12-03 20:57:06.182902"], ["updated_at", "2018-12-03 20:57:06.182902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 14], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 15], ["room_id", 14], ["created_at", "2018-12-03 20:57:06.190896"], ["updated_at", "2018-12-03 20:57:06.190896"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-03 20:57:06.194769"], ["id", 11]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 14], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 15], ["room_id", 14], ["created_at", "2018-12-03 20:57:06.202380"], ["updated_at", "2018-12-03 20:57:06.202380"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-03 20:57:06.206001"], ["id", 12]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-03 18:57:06 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:57:06.210668"], ["last_sign_in_at", "2018-12-03 20:57:06.210668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:57:06.211710"], ["id", 14]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]] [1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 14], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 14], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (21.9ms) Rendered layouts/_header-admin.html.erb (3.9ms)
Completed 200 OK in 1889ms (Views: 70.3ms | ActiveRecord: 3.6ms)
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "silva@silva.com"], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["email", "silva@silva.com"], ["encrypted_password", "$2a$11$ncSkgfL2uMxf05DKdaOuHu2yBkQ7.LHlbr86XLnKmAJUXwUB6PdwK"], ["created_at", "2018-12-03 20:57:08.273401"], ["updated_at", "2018-12-03 20:57:08.273401"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-03 20:57:08.277771"], ["updated_at", "2018-12-03 20:57:08.277771"], ["tipo_sala", "palestras"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "123@123.com"], ["LIMIT", 1]]
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "123@123.com"], ["encrypted_password", "$2a$11$OfaZsebwgkyS8Z.g5FoHy.AVWl/ZUTVh9yS7KfYv2fzAKByoUyYn."], ["created_at", "2018-12-03 20:57:08.447440"], ["updated_at", "2018-12-03 20:57:08.447440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 17], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 17], ["room_id", 15], ["created_at", "2018-12-03 20:57:08.459441"], ["updated_at", "2018-12-03 20:57:08.459441"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-03 20:57:08.464066"], ["id", 13]]
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mRoom Load (0.3ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 17], ["LIMIT", 1]]
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 17], ["room_id", 15], ["created_at", "2018-12-03 20:57:08.474636"], ["updated_at", "2018-12-03 20:57:08.474636"]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-03 20:57:08.479116"], ["id", 14]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-03 18:57:08 -0200
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7[0m [["sign_in_count", 1], ["current_sign_in_at", "2018-12-03 20:57:08.485316"], ["last_sign_in_at", "2018-12-03 20:57:08.485316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-03 20:57:08.486488"], ["id", 16]] [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by AppointmentsController#weeks_appointments as HTML
[1m[36mAppointment Load (0.7ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')[0m Rendering appointments/weeks_appointments.html.erb within layouts/application [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 17], ["LIMIT", 1]] [1m[36mRoom Load (0.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 17], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]] Rendered appointments/weeks_appointments.html.erb within layouts/application (27.2ms) Rendered layouts/_header-admin.html.erb (6.2ms)
Completed 200 OK in 93ms (Views: 85.9ms | ActiveRecord: 3.9ms)
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[36mUser Exists (2.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35mSQL (20.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$11$25RV6tfXDgSuvLTBwBp6/eNNDhC.EqFcbvcAI3s0NUn5YXmX4XGwq"], ["created_at", "2018-12-03 23:29:41.423382"], ["updated_at", "2018-12-03 23:29:41.423382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Processing by PasswordResetsController#create as HTML
Parameters: {"password_reset"=>"[FILTERED]", "user"=>"18"}
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "teste@unb.com.br"], ["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3[0m [["reset_digest", "LLZsiCpVzYwp8pkuG9hbpQ"], ["updated_at", "2018-12-03 23:29:41.468317"], ["id", 18]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3[0m [["updated_at", "2018-12-03 23:29:41.472801"], ["reset_sent_at", "2018-12-03 23:29:41.472068"], ["id", 18]]
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)
UserMailer#password_reset: processed outbound mail in 359.2ms Started GET “/routes” for 127.0.0.1 at 2018-12-03 21:46:36 -0200
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread' Started GET “/” for 127.0.0.1 at 2018-12-03 21:46:40 -0200 Processing by HomeController#index as HTML
Rendering home/index.html.erb within layouts/home [1m[36mUser Load (1.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered home/index.html.erb within layouts/home (46.9ms) Rendered layouts/_header-user.html.erb (6.2ms)
Completed 200 OK in 969ms (Views: 869.8ms | ActiveRecord: 6.4ms)
Started GET “/rooms” for 127.0.0.1 at 2018-12-03 21:46:44 -0200 Processing by RoomsController#index as HTML
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendering rooms/index.html.erb within layouts/application [1m[36mRoom Load (28.6ms)[0m [1m[34mSELECT "rooms".* FROM "rooms"[0m Rendered rooms/index.html.erb within layouts/application (101.2ms) Rendered layouts/_header-admin.html.erb (3.7ms)
Completed 200 OK in 254ms (Views: 212.4ms | ActiveRecord: 32.6ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 21:46:45 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (1.0ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (58.7ms) [1m[36mUser Load (1.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (7.4ms)
Completed 200 OK in 203ms (Views: 183.0ms | ActiveRecord: 9.7ms)
Started GET “/appointments/3/edit” for 127.0.0.1 at 2018-12-03 21:46:48 -0200 Processing by AppointmentsController#edit as HTML
Parameters: {"id"=>"3"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (68.4ms)
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.6ms)
Completed 200 OK in 183ms (Views: 175.8ms | ActiveRecord: 1.3ms)
Started PATCH “/appointments/3” for 127.0.0.1 at 2018-12-03 21:46:55 -0200 Processing by AppointmentsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DnHZPLh3IhWOfc0DisTQPsIqCJeqiM9K9QHSZpUHTcVV8EvcfXCyLMtKOPjTKgtdFPlu+GQSpov/mw/+IHL5cQ==", "appointment"=>{"status"=>"1"}, "commit"=>"Update", "id"=>"3"}
[1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.4ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["status", 1], ["updated_at", "2018-12-03 23:46:55.285084"], ["id", 3]]
[1m[35m (10.4ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/all-appointments Completed 302 Found in 25ms (ActiveRecord: 12.6ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 21:46:55 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.5ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (21.1ms) [1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (6.1ms)
Completed 200 OK in 103ms (Views: 98.2ms | ActiveRecord: 3.2ms)
Started GET “/appointments/3/edit” for 127.0.0.1 at 2018-12-03 21:47:02 -0200 Processing by AppointmentsController#edit as HTML
Parameters: {"id"=>"3"}
[1m[36mAppointment Load (0.5ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (3.5ms)
[1m[36mUser Load (1.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (4.1ms)
Completed 200 OK in 95ms (Views: 89.8ms | ActiveRecord: 1.6ms)
Started PATCH “/appointments/3” for 127.0.0.1 at 2018-12-03 21:47:04 -0200 Processing by AppointmentsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/FOTvrgdvrNNKufPfraHUwbGWipl7VkYbndzyT/ByXCn0gFefRouiggdEjQnWFww0BU8Rat3MNlk7a5RirR9xA==", "appointment"=>{"status"=>"2"}, "commit"=>"Update", "id"=>"3"}
[1m[36mAppointment Load (0.6ms)[0m [1m[34mSELECT "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
[1m[36mRoom Load (0.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
[1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3[0m [["status", 2], ["updated_at", "2018-12-03 23:47:04.957410"], ["id", 3]]
[1m[35m (24.1ms)[0m [1m[35mCOMMIT[0m
Redirected to localhost:3000/all-appointments Completed 302 Found in 43ms (ActiveRecord: 27.1ms)
Started GET “/all-appointments” for 127.0.0.1 at 2018-12-03 21:47:04 -0200 Processing by AppointmentsController#all_appointments as HTML
Rendering appointments/all_appointments.html.erb within layouts/application [1m[36mAppointment Load (0.4ms)[0m [1m[34mSELECT "appointments".* FROM "appointments"[0m [1m[36mRoom Load (2.7ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.0ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE Room Load (0.1ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mRoom Load (0.9ms)[0m [1m[34mSELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]] [1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered appointments/all_appointments.html.erb within layouts/application (29.8ms) [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]] Rendered layouts/_header-admin.html.erb (3.4ms)
Completed 200 OK in 82ms (Views: 73.8ms | ActiveRecord: 5.8ms)
Started GET “/routes” for 127.0.0.1 at 2018-12-03 21:50:29 -0200
ActionController::RoutingError (No route matches [GET] “/routes”):
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app' web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call' web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch' web-console (3.6.2) lib/web_console/middleware.rb:20:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app' railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged' railties (5.1.6) lib/rails/rack/logger.rb:24:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call' rack (2.0.5) lib/rack/method_override.rb:22:in `call' rack (2.0.5) lib/rack/runtime.rb:22:in `call' activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call' actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call' rack (2.0.5) lib/rack/sendfile.rb:111:in `call' railties (5.1.6) lib/rails/engine.rb:522:in `call' puma (3.11.4) lib/puma/configuration.rb:225:in `call' puma (3.11.4) lib/puma/server.rb:632:in `handle_request' puma (3.11.4) lib/puma/server.rb:446:in `process_client' puma (3.11.4) lib/puma/server.rb:306:in `block in run' puma (3.11.4) lib/puma/thread_pool.rb:120:in `block in spawn_thread'